Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing stuff
#12
@NasaCow

Open file For Input is read only in sequential order from first line to last.

Open file for Output is write only and will over write the last file by same name again it writes in sequential order from first line to last.

Open file for Binary reads and writes with get and put in byte quantities specified in length of get or put variable value or type.

Open file for Random also reads and writes to any part of file but usually of one and same record length setup with UDT using fixed lengths for strings.

So I'd say Input / Output is easiest for beginner and you can get very fancy with Binary reading and writing anywhere with any amount of bytes. 

Data records for 60 students, I doubt there is any difference you could feel for any access method over another.

I like Input / Output access because no matter how much faster Binary is, using arrays for processing data is faster than using a file as an array.
So with Input / Output you load arrays at start of data session and save data to files at end when done.
b = b + ...
Reply


Messages In This Thread
Storing stuff - by NasaCow - 12-14-2022, 10:42 AM
RE: Storing stuff - by mdijkens - 12-14-2022, 01:26 PM
RE: Storing stuff - by SMcNeill - 12-14-2022, 02:17 PM
RE: Storing stuff - by NasaCow - 12-14-2022, 02:31 PM
RE: Storing stuff - by SpriggsySpriggs - 12-14-2022, 04:40 PM
RE: Storing stuff - by Pete - 12-14-2022, 08:04 PM
RE: Storing stuff - by TempodiBasic - 12-14-2022, 11:39 PM
RE: Storing stuff - by NasaCow - 12-15-2022, 06:05 AM
RE: Storing stuff - by Pete - 12-15-2022, 11:51 AM
RE: Storing stuff - by mdijkens - 12-15-2022, 12:26 PM
RE: Storing stuff - by SpriggsySpriggs - 12-15-2022, 02:36 PM
RE: Storing stuff - by bplus - 12-15-2022, 02:57 PM
RE: Storing stuff - by bplus - 12-15-2022, 04:08 PM



Users browsing this thread: 2 Guest(s)