Hi everybody,
I try to create a text file and write two lines in it from within Mathprog language.
First, I use Mathprog with a .mod file, which contains my model. At the end, after the code that determines my model, I have the following code:
....
.....
solve;
printf : 'Hello world!\n' > "MyTextFile.txt";
printf : 'I am fine\n' >> "MyTextFile.txt";
end;
Please note that I use a separate .dat file for the model's data. In addition, glpk manages to solve my model.I use the command line in order to call glpsol.
Nevertheless, no text file named "MyTextFile.txt" appears within the folder that glpsol.exe allong with .mod and .dat files are located. In the contrary, the file foo.sol, which is defined at the command line next to the option --output does appear within the mentioned folder.
Can any one help me?
Thanks a lot in advance
Tassopoulos Ioannis
P.S.
I use Windows 7 64bit OS.