help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Problem with writing to a text file from within Mathprog


From: john tass
Subject: [Help-glpk] Problem with writing to a text file from within Mathprog
Date: Sat, 2 May 2015 04:44:36 +0300

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.


--
Ioannis X. Tassopoulos

reply via email to

[Prev in Thread] Current Thread [Next in Thread]