i read the file, when Form loads
string line;
if (!File.Exists(dir)) File.Create(dir);
StreamReader reader = new StreamReader(dir);
while ((line = reader.ReadLine()) != null)
{ /* do something */}
reader.Close();
then I press the button and write something in this file. but in line
System.IO.StreamWriter file = new StreamWriter(dir);
i have an error "file used by another process". why? i close my reader..