skilk Posted August 27, 2005 Report Share Posted August 27, 2005 (edited) Как перед открытием файла проверить его существование? Edited August 27, 2005 by Сергей Плоткин Quote Link to comment Share on other sites More sharing options...
Grimm Posted August 27, 2005 Report Share Posted August 27, 2005 skilk: язык какой? например на VB функции передаем путь к файлу, в случае существования она возвращает true(1), в противном false(0) public function FileExist(Path as string) as boolean If Len(Dir(Path))>0 then FileExist=True Else FileExist=False End if end function Quote Link to comment Share on other sites More sharing options...
skilk Posted August 27, 2005 Author Report Share Posted August 27, 2005 На Delphi надо. Quote Link to comment Share on other sites More sharing options...
Сергей Плоткин Posted August 27, 2005 Report Share Posted August 27, 2005 На Delphi тоже есть подобная функция. Называетcя FileExists. Передаешь ей путь к файлу. Если файл существует, то функция выдает True. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.