home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!rbg.informatik.th-darmstadt.de!misar
- From: misar@rbg.informatik.th-darmstadt.de (Walter Misar)
- Subject: Re: Fopening a text file
- Sender: news@news.th-darmstadt.de (The News System)
- Message-ID: <1993Jan5.092546@rbg.informatik.th-darmstadt.de>
- Date: Tue, 5 Jan 1993 08:25:46 GMT
- References: <1993Jan5.015937.19270@vpnet.chi.il.us>
- Nntp-Posting-Host: rbhp69.rbg.informatik.th-darmstadt.de
- Organization: TH Darmstadt
- Lines: 17
-
- In article <1993Jan5.015937.19270@vpnet.chi.il.us>, mox@vpnet.chi.il.us (William Moxley) writes:
- > I'm having some problems with a program that I wrote for this computer
- > which is running a sys V unix operating system. My problem is with
- > fopen. When I try do a fopen("filename", "rt"); it opens the file as a
- > binary. If I drop the t, is still creates a binary file. So how do I
- > make fopen create a straight text file?
- >
- > As you can guess, I normally don't write programs for machines other
- > than dos. Thanks in advance...
-
- Oops, "rt" is new to me. In my understanding "r" specifies a text read,
- "rb" a binary read. Further under Unix there isn't any difference between
- this two modes - under both modes you will exactly read what was written.
-
- --
- Walter Misar It is impossible to enjoy idling thoroughly
- misar@rbg.informatik.th-darmstadt.de unless one has plenty of work to do.
-