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
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
Comment