« Return to Thread: [AMPL 1818] input and ouput function

[AMPL 1818] input and ouput function

by Dr. P K Modi :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
I want to read from a file f1 and write the several output to another file f2.
I wish to use this
algo
open f1
read all input data
close f1
 
open f2
write all output data
close f2
Such type of read and print command available in other lang but how to implement in AMPL I do not know.
I use printf command like this
printf arg1 redirection(f2)
printf arg2 redirection(f2)
 
Dr. P. K. Modi
Reader
Electrical Engineering Department
University College of Engineering
EC BURLA-768018
Orissa, India.
Phone: 91 663 2430891 (resi)
91 98610 65001 (mobile)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: [AMPL 1818] input and ouput function

LightInTheBox - Buy quality products at wholesale price!