home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:9322 comp.lang.c:13605
- Newsgroups: comp.os.msdos.programmer,comp.lang.c
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!news.larc.nasa.gov!daffodil!wyvern!waggen!alpha
- From: alpha@waggen.twuug.com (Joe Wright)
- Subject: Re: BC++2.0 lseek problem(ALSO:lseek() question)
- Message-ID: <1992Sep13.043839.8659@waggen.twuug.com>
- Organization: ALPHA, Box 68621, Va. Beach, VA 23455
- X-Newsreader: Tin 1.1 PL5
- References: <1992Sep13.011428.25100@eng.ufl.edu>
- Distribution: usa
- Date: Sun, 13 Sep 1992 04:38:39 GMT
- Lines: 13
-
- Using open() and read() and lseek() will usually guarantee
- non-portability. These are OS functions, not C functions.
- More specifically, they are Unix functions and not MSDOS
- functions. I strongly reccommend fopen(), fseek(), etc.
-
- That aside, the main reason that seek doesn't work the same
- on Unix text files and DOS text files is that DOS uses two
- characters, \r\n, to terminate a line while Unix uses only \n.
- So the DOS text file has a few more characters in it than
- the Unix one.
-
- --
- Joe Wright alpha@waggen.twuug.com alpha@wyvern.twuug.com
-