ShowerThoughts
2008-08-04 15:49:26
Look this piece of code even creates the file when it exists =/
but it is supposed to only create the file when it doesn't exists else it overwrites my old file with info =/
Code:
but it is supposed to only create the file when it doesn't exists else it overwrites my old file with info =/
Code:
if (File.Exists(DefaultTempDir + "SSC\\Path.txt") == false) ;
{
FileInfo MyFile = new FileInfo(DefaultTempDir + "SSC\\Path.txt");
FileStream fs = MyFile.Create();
fs.Close();
}
if (File.Exists(DefaultTempDir + "SSC\\Path.txt") == false);
{
FileInfo MyFile = new FileInfo(DefaultTempDir + "SSC\\Path.txt");
FileStream fs = MyFile.Create();
fs.Close();
}