Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
checking if a file exists Posted by sarkiemarkie on 17 Feb 2006 at 1:20 PM
i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.

how do i see if the file exists;

i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist
Report
Re: checking if a file exists Posted by zibadian on 17 Feb 2006 at 2:24 PM
: i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.
:
: how do i see if the file exists;
:
: i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist
:
Check out the FileExists() function.
Report
Re: checking if a file exists Posted by sarkiemarkie on 17 Feb 2006 at 3:03 PM
: : i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.
: :
: : how do i see if the file exists;
: :
: : i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist
: :
: Check out the FileExists() function.
:

excellent, thank you




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.