home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!travel!jon.ault
- From: jon.ault%travel@wugate.wustl.edu (Jon Ault)
- Newsgroups: comp.lang.c
- Subject: How to fprintf two column
- Message-ID: <5663.87.uupcb@wugate.wustl.edu>
- Date: 26 Aug 92 20:52:00 GMT
- Distribution: world
- Organization: Travel Online, St. Louis, MO
- Reply-To: jon.ault%travel@wugate.wustl.edu (Jon Ault)
- Lines: 20
-
- VA. I need the following output to a file:
- . 1.2 2.3
- . 1.3 2.4 1.4 2.5
- . ....
- . which contains two columns. They are not generated at the same
- . time, i.e. at the first the first column is generated and then
- . write to a file. then the file is rewinded and the second column is
- . generated. Now I need write the second column to that particular
- . place, say begin with 10th column. I have tried fseek() but it
- . seems to me not working. (?)
-
- I would approach this by writing the first column out to a temp file,
- then reading it back in and appending the second column, writing that
- out to the final output file. Or, save the first column in some kind
- of array, then write both columns at once.
-
- Jon
- ---
- . DeLuxe./386 1.25 #124sa .
-
-