home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!europa.asd.contel.com!emory!athena.cs.uga.edu!shen
- From: shen@athena.cs.uga.edu (Mingzuo Shen)
- Subject: fprintf() over-writes line for line (rather than char for char)?
- Message-ID: <1992Dec18.213750.25274@athena.cs.uga.edu>
- Sender: shen@athena.cs.uga.edu (Mingzuo Shen)
- Organization: University of Georgia, Athens
- Distribution: usa
- Date: Fri, 18 Dec 1992 21:37:50 GMT
- Lines: 18
-
- Hi all,
-
- If I fseek() into the middle of a text file and start fprintf(),
- then it seems that each new character over-writes a single old one.
- if I start from the beginning of a line of 60 characters, and
- fprintf() 80 characters, then the 60 characters are over-written
- (which is what I wanted), and in addition, 20 more characters
- in the next line are also over-written (which is NOT what I wanted).
- I would prefer fprintf() leaves the next line alone.
-
- Is there a method by which I have what I wanted (line-for-line
- over-writing, and do not have what I do not want? I tried this
- on AIX (cc).
-
- Any help and pointers are appreciated. Thanks in advance,
-
- Mingzuo Shen
-
-