help-glpk
[Top][All Lists]
Advanced

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

Re: Help: read from txt files


From: Greg Gruber
Subject: Re: Help: read from txt files
Date: Thu, 26 Nov 2020 15:04:52 -0500

Hi Manuel,

You can use the "CSV table driver" functionality, as discussed in Appendix C of the user guide. You can both read from and write columnar data to CSV formatted text files.

Also, the printf functionality can be used for outputting to text files using the standard piping (">" for a new file, ">>" for appending). This is discussed in section 4.9 of the user guide. Note that the printf function gives you tremendous flexibility for formatting your output.

Best regards,
Greg

Message: 1
Date: Thu, 26 Nov 2020 18:48:43 +0000
From: Manuel Castro <m.j.castro@zoho.com>
To: "help-glpk" <help-glpk@gnu.org>
Subject: Help: read from txt files
Message-ID: <17605e2e025.101f27226107655.7001986212667070835@zoho.com" target="_blank">17605e2e025.101f27226107655.7001986212667070835@zoho.com>
Content-Type: text/plain; charset="utf-8"

Hi there,



Is it possible to get GLPK to read/write data from/to text files?


If yes:

what is the syntax statement one should use for that purpose?

what is the format the input data in the text file should be in?




Many thanks in advance for your help. It's really appreciated.



Kind regards,

Manuel. 

reply via email to

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