Announcement

Collapse
No announcement yet.

Reading File in FormulaOutputRoot

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

  • Reading File in FormulaOutputRoot

    Greetings:

    I am trying to read a file in the FormulaOutputRoot.

    If I use:

    OpenOrderState = new File("570.txt");
    OpenOrderState.open("rt");
    OpenOrder = OpenOrderState.readln();
    OpenOrderState.close();

    then OpenOrder returns the string in the file fine.

    If I use:

    OpenOrderState = new File("ER2 03-06 Globex_Sim101_position.txt");
    OpenOrderState.open("rt");
    OpenOrder = OpenOrderState.readln();
    OpenOrderState.close();

    then OpenOrder returns null.

    The only difference between the 2 is that the text file in the second example has spaces in the name.

    Is this what's causing the problem? Is there a way to read a text file that has spaces in the name?

    Regards,

    Warren

  • #2
    Warren
    FWIW I have some files wiith names containing spaces in them and they appear to work without any problems
    Alex

    Comment


    • #3
      Can you read this file with the code I posted?
      Attached Files

      Comment


      • #4
        Warren
        Yes I can. Make sure that you are using the proper upper/lower cases in either the file name or in the efs call.
        Alex

        Comment


        • #5
          Thanks Alex.

          Comment

          Working...
          X