home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19227 < prev    next >
Encoding:
Text File  |  1993-01-05  |  815 b   |  22 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!wupost!uwm.edu!linac!att!mcdchg!laidbak!tellab5!vpnet!mox
  3. From: mox@vpnet.chi.il.us (William Moxley)
  4. Subject: Fopening a text file
  5. Message-ID: <1993Jan5.015937.19270@vpnet.chi.il.us>
  6. Organization: Vpnet Public Access
  7. Date: Tue, 5 Jan 1993 01:59:37 GMT
  8. Lines: 12
  9.  
  10. I'm having some problems with a program that I wrote for this computer
  11. which is running a sys V unix operating system.  My problem is with
  12. fopen.  When I try do a fopen("filename", "rt"); it opens the file as a
  13. binary.  If I drop the t, is still creates a binary file.  So how do I
  14. make fopen create a straight text file?
  15.  
  16. As you can guess, I normally don't write programs for machines other
  17. than dos.  Thanks in advance...
  18.  
  19.         William Moxley
  20.         mox@vpnet.chi.il.us
  21.  
  22.