home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
pb
/
library1
/
rmex230.bas
< prev
next >
Wrap
BASIC Source File
|
1990-04-13
|
395b
|
15 lines
OPEN "RANDOM.DTA" FOR RANDOM AS #1 LEN = 12
MAP #1, 10 AS FInputName$$, 2 AS FLuckyNumber$$
FOR Record% = 1 TO 3
INPUT "Name"; FInputName$$
INPUT "Lucky Number"; Number%
FLuckyNumber$$ = MKI$(Number%)
PUT #1, Record%
NEXT Record%
PRINT:PRINT "THE DATA STORED WAS: "
FOR Record% = 1 TO 3
GET #1, Record%
PRINT FInputName$$; CVI(FLuckyNumber$$)
NEXT Record%
CLOSE #1
END