I did a small procedure to read a line of text from a SD file and write it back to another SD file, like this:
inFileName = rootDirectory + @ “\WebServer” + inFileName;
outFileName = rootDirectory + @ “\WebServer” + outFileName;
StreamReader sr = new StreamReader(inFileName);
StreamWriter sw = new StreamWriter(outFileName);
string str = sr.ReadLine();
I´m getting always an error in the 'string str = sr.ReadLine();'
If I do not define the streamwriter, no error occurs;
anybody knows if there is any limitation using reader and writer at the same time ?