how can we check file existence?
Show older comments
hi, i am writing my application(gui app) data to a text file (appdata.txt) and i want to make sure that every time when the application runs it doesn't create a new file or a copy of a file, the problem is:
1) how can i check if the appdata.txt already exists or not (if not then create new text file or else append data to existing one)
thanks for any help.
Accepted Answer
More Answers (2)
Safiullah Khan
on 12 Apr 2011
0 votes
Yahia chs
on 20 May 2011
0 votes
thank you very much this was really felpful!!!!!!!
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!