Game Development Community

Check If File already exist

by j1mel · in Torque Game Engine · 08/21/2007 (12:38 am) · 2 replies

I was wondering what the command is for checking if a file already exist. I can read and write from files fine but no luck checking weather a file already exists or not.

#1
08/21/2007 (5:08 am)
isFile("./somefile.cs")
#2
08/21/2007 (11:01 am)
Gary's right.

One thing to watch for though is that if you delete the cs files for release, you might want to also look for the dso since the cs is gone. Just FYI.

Best option would be to improve the isFile function to do that check as well.