Check if a file exists?
Blitz3D Forums/Blitz3D Beginners Area/Check if a file exists?| 
 | ||
| How do I check if a text file exists in the current directory, for example "readme.txt" | 
| 
 | ||
| I use FileSize & if 0 then i don't load. (I suppose the file could still exist with a size 0) Marg | 
| 
 | ||
| FileType is your friend | 
| 
 | ||
| He's not my friend... Stole my girlfriend and my house. I try and load the file in. If the handle for the file = 0 then it ain't there :o) | 
| 
 | ||
| Well, i still think he's a jolly decent chap. I didn't say you couldn't have other friends too :) | 
| 
 | ||
| He was my friend before he was yours. He was best man at my wedding too so ner-ner-ne-ner-ner! | 
| 
 | ||
| http://www.blitzbasic.co.nz/b3ddocs/command.php?name=FileType&ref=2d_a-z |