Hi Oxa,
Thanks for the reply. I have a selection file generator, which creates an empty file, and the selections file.
I will look to use
if (File.Exists(paths.selFolder + @"SP\" + post))
{
File.Delete(paths.selFolder + @"SP\" + post);
}
File.WriteAllText(paths.selFolder + @"SP\" + post, "", Encoding.Unicode);
which will create an empty unicode text file...
Interesting how I have used that code to write other files, and as you have indicated, it will by default create an ansi file, and I have not witnessed this before.
Thanks for letting me know. I appreciate that if there is no file there, MFP will create one on the first run, but that gives me a problem because I have wrote monitoring software, which means the presence of the file is essential..
Hopefully the above will solve the issue anyway. We shall see..
Thanks again
Mark.