Arrays and files

 BBS: Inland Empire Archive
Date: 04-23-92 (02:50)             Number: 97
From: DAVID BLISS                  Refer#: 50
  To: MIKE EASTERLING               Recvd: NO  
Subj: Arrays and files               Conf: (2) Quik_Bas
 > Can you put arrays into random access files?????

 > Ie, or for example

 > Type datablock
 >    var as integer
 >    var1 as integer
 > end type
 > dim records(12) as datablock

open "file.dat" for random as 1
for x=1 to 12
put 1,,records(x)
next x

dave

---
 * Origin: The Aliens BBS, Simpsonville SC, 8032347195 (1:3639/4)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET