English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how do I take data from a sequential access file and pass it into a double array (ex pages(10))? I am looking to populate the array via a text file arranged as thus:

bze, 13.95
mce, 15.00
dde, 9.95
ffd, 1.36
and so on for a total of ten rows!

Any assistance would be a great help

2006-07-22 11:01:01 · 1 answers · asked by Alex Hawkins 2 in Computers & Internet Programming & Design

1 answers

DIM A$(11)
DIM B!(11)

OPEN "C:\ALEX\INPUT.DAT" FOR INPUT AS #1
INDEX% = 1
WHILE EOF(1) = 0
LINE INPUT #1, A$(INDEX%),B!( INDEX%)
INDEX% = INDEX% + 1
WEND

CLOSE #1
ETC.

2006-07-22 11:09:19 · answer #1 · answered by revicamc 4 · 0 0

fedest.com, questions and answers