TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DAVID BATE
from: KEVIN CAMPBELL
date: 1997-05-25 10:29:00
subject: Windows Program reading from a file.

 > Hello All!
 > I have been playing with C++ and I ran into a snag.  After looking
 > through the
 > books and going through the examples, I can't find, anywhere, an example
 > of a
 > windows file reading a file like CONFIG.RA that is connected to a
 > record.
 > Any ideas?
What, you mean random access files? Try using fread(); That will read from a 
file into a preallocated address, so if you provide the address of a 
structure to the function, you may read data from a file directly into that 
structure.
Hope that helps - Kev
Kevin Campbell
Sysop of Deimos BBS
E-Mail: Sysop@Deimos.unmanned.co.uk
--- FMail/386 1.02
---------------
* Origin: Mail shipped from Deimos Spaceport (2:259/17)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.