[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] How can put/output my results in table format "txt" "csv
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] How can put/output my results in table format "txt" "csv" or "xBase" |
Date: |
Wed, 8 Apr 2009 13:50:54 +0300 |
> The result script (below) is working, however, I would like put these
> results in table format in "txt" "cvs" or "xBase". Any idea how to
> output these results into a file in "txt", "cvs" or xBASE rather
> displaying it screen. Just one file with headers like this...
> Period Ave_Age Total_Vol Total_Cut_Vol Carbon_Stand Carbon_HWP
> 1
> 2
> .
> .
> 70
> for {p in 1..Numyear} {
> printf ' %2s %10.2f %10.2f %15.2f %15.2f %15.2f %15.2f %15.2f\n', p,
> ......
> Putting at the end .....* 0.45 * 3.6667 else Yield[i,Maxyear]* 0.45 *
> 3.6667)} > "result.txt";
> }
> This one does not work only one line will be output as txt file
> Any ideas how to do this??
Use '>>' (append) rather than '>'.