| www.delorie.com/archives/browse.cgi | search |
| From: | kezman AT nOsPaMbigfoot DOT com (Kieran Farrell) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: best way to read selected data from a file? |
| Message-ID: | <3814e8ed.53973068@news.pasteur.dialix.com.au> |
| References: | <3812949e_2 AT news DOT chariot DOT net DOT au> <7v1vkh$4fv$1 AT news5 DOT jaring DOT my> |
| X-Newsreader: | Forte Free Agent 1.11/32.235 |
| Organization: | DIALix Internet Services |
| Lines: | 9 |
| Date: | Mon, 25 Oct 1999 23:35:20 GMT |
| NNTP-Posting-Host: | 203.12.3.8 |
| X-Complaints-To: | abuse AT telstra DOT net |
| X-Trace: | nsw.nnrp.telstra.net 940894574 203.12.3.8 (Tue, 26 Oct 1999 09:36:14 EST) |
| NNTP-Posting-Date: | Tue, 26 Oct 1999 09:36:14 EST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
>You can use fread and fwrite to read from and write to random location from >a file. But you need to specify the length you want to read if you use >fread. Hmm that's actually bad advice, his question was for text files. Once you use fread or fwrite it automatically makes it a binary file. ----- Kieran Farrell
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |