Hello,
I want my application to read a configuration file and I do not want this file to be stored in SD.
The fact is that this piece of code :
-----------------------------------------------------------------------------------------------
try
{
Directory.SetCurrentDirectory(CRootDirectory);
if (Directory.Exists(CConfigurationDirectory))
{
Directory.SetCurrentDirectory(CConfigurationDirectory);
if (File.Exists(CBoxNumberFile))
{
FileStream file = new FileStream(CBoxNumberFile, FileMode.Open);
boxNumber = file.ReadByte().ToString();
file.Close();
}
}
}
catch (Exception) { }
-----------------------------------------------------------------------------------------------
works when CRootDirectory = "\\SD" but fails when CRootDirectory = "\\". On "if (Directory.Exists(CConfigurationDirectory))" I have an exception...
Is there a way to store/read files in others places that SD ?
Can you explain me how ???
Read/Write File in flash memory
Started by Tayfun, Oct 26 2011 01:01 PM
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users