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.cas...@zoho.com>
> To: "help-glpk" <help-glpk@gnu.org>
> Subject: Help: read from txt files
> Message-ID: <17605e2e025.101f27226107655.7001986212667070...@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