I am trying to write some data to a .csv file. It writes to the file fine, but it doesn't seem to let go of the file.
When I try to open it in Excel, it says that it's read only. How do I get it to release?
The code is below:
var CurFile = new File( "PairLevels.csv" );
var CurText = "Stuff";
if (CurFile.open("at+") == false) debugPrintln("open failed");
CurFile.writeln(CurText);
CurFile.flush();
if (CurFile.close == false) debugPrintln("close failed");
It doesn't print close failed in the debug window either
When I try to open it in Excel, it says that it's read only. How do I get it to release?
The code is below:
var CurFile = new File( "PairLevels.csv" );
var CurText = "Stuff";
if (CurFile.open("at+") == false) debugPrintln("open failed");
CurFile.writeln(CurText);
CurFile.flush();
if (CurFile.close == false) debugPrintln("close failed");
It doesn't print close failed in the debug window either
Comment