TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Peter Lavender
from: Daniel O`Shea
date: 1996-04-12 16:24:10
subject: reading files

G`Day Peter

08-Apr-96, Peter Lavender wrote to Daniel O'Shea

 PL> Hi Daniel,
 PL>>> 1)  Is it possible to read in and then write to the same file?
 DO>> This is possible with a Binary file, but not a Text file...
 PL> I see what you mean..  but I did what I meant, which was read in the file 
 PL> using one procedure, then do what has to be done, then write the file out
 PL> using another procedure..
 PL> Cya,
 PL> Pete

Yep, but you're not using the same file at all, just the same filename!
Think about it! :^>}

A Binary file is far more flexible, b/c it uses direct access rather
then sequential access (similar to Disk Vs. Tape), and so single records
can be updated without having to read/write the entire file!

Meganet - 95:3200/10.1 Signet - 28:3000/302.1 Zapnet - 173:6139/228.1
Fidonet - 3:638/117.1 Or 3:634/396.1 Internet - dtm{at}nestbbs.pretech.com.au
--- Terminate 3.00/Pro
* Origin: Great Flying Albino Banana Skins! (3:634/396.1)
SEEN-BY: 633/267 270
@PATH: 634/396 635/503 50/99 635/544 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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™.