Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.02.04;
Скачать: [xml.tar.bz2];

Вниз

Поиск файла   Найти похожие ветки 

 
Socol   (2002-01-18 07:14) [0]

Здраствуйте!
Каким образом можно проверить есть ил файл на диске?
Если есть то переменная а =1
Если нет то 0
Спасибо всем кто ответил!


 
mart   (2002-01-18 08:05) [1]

Sysutils

Category

file management routines

function FileExists(const FileName: string): Boolean;

Description

FileExists returns True if the file specified by FileName exists. If the file does not exist, FileExists returns False.


 
Dmitry-corp   (2002-01-18 11:06) [2]

var a: integer;
begin
if FileExists("C;\123.txt")= True then
a:=1;
else
a:=0;
end;


 
Polevi   (2002-01-18 11:25) [3]

a:=Integer(FileExists("C;\123.txt"));


 
Ынс   (2002-01-18 12:00) [4]

LPSTR FindFileInTree(LPSTR szFile, LPSTR szDir, LPSTR szBuf, int cbBuf);

FindFileInTree searches for the specified file in a directory and its subdirectories.

Arguments

szFile

Specifies the name of the file you are trying to locate.

szDir

Specifies the top-level directory of the tree structure you want to search.

szBuf

Points to the destination buffer that will receive the path string.

cbBuf

Length, in bytes, of the destination buffer.

Return Value

The return value is the full path of the first instance of the file. If the file isn"t found, the return value is an empty string.



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.02.04;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.004 c
14-8993
savva
2001-12-17 10:37
2002.02.04
Интересно, а адолго ли умер сервер на Newmail.ru??


3-8753
sos
2002-01-04 16:53
2002.02.04
Компонента для работы с файлами типа *.btr


1-8863
twinc
2002-01-15 16:31
2002.02.04
ListView Report


1-8951
Oleg Fomicheff
2002-01-18 13:18
2002.02.04
RxLib TrayIcon: как убрать из Taskbar


3-8750
Искатель
2002-01-03 01:06
2002.02.04
Как в DBGridEh запретить обход всех записей перед отображением данных





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский