Under Initialize() I am creating two files a .csv and a .txt and adding headers using File.WriteAllText. This works fine. However when I try to append lines of information to these files inside OnBarUpdate() I get no data being written. The Output window is populated just fine with the information I am using. Is there a general reason for this?
Initialize() // This works
{
File.WriteAllText(dataFile,string.Empty); // Create/clear contents of dataFile to start
File.WriteAllText(dataFile,dataFileHeader); // Header for dataFile
}
OnBarUpdate() // This does not work
{
File.AppendAllText(dataFile,"Test line from inside OnBarUpdate");
}
Cheers,
darmbk.
Comment