Announcement

Collapse
No announcement yet.

eSignal generated file is read only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • eSignal generated file is read only

    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

  • #2
    > if (CurFile.close == false) debugPrintln("close failed");

    This should be CurFile.close()

    You left off the parentheses; otherwise, the function won't get called.

    Comment

    Working...
    X