I have programatically created a test.txt file in the LocalApplicationData folder on the computer.
Now I test if I can find that file with the below code and it works.
The file do exist.
What I have found is that the file should be in this directory ?
LocalApplicationData
C:\Documents and Settings\Charlie\Local Settings\Application Data
However I cant find this directory on my computer. I have no "Local Settings" (I use XP professional)
If I Search for test.txt on C:\ with the Search function in the Startmenu, this search cant find test.txt either ?
But the code below can anyway, so the file do exist in some way wich is good but I cant find it manually.
String^ Path = System::Environment::GetFolderPath(Environment::SpecialFolder::LocalApplicationData) + "\\" + "test.txt";
if( System::IO::File::Exists(Path) ) //Exists ?
{
MessageBox::Show("File exist");
}