10-06-2003, 10:36 PM
I have written this file, but it will not work properly:
CLS
INPUT "CHURCH ";CHURCH$ ' I use FIRST as input
INPUT "SPEAKER ";SPEAKER$ ' I use ASSEMBLY as input
OPEN "CNAME.DTA" FOR BINARY AS #1
PUT 1,1, CHURCH$
PUT 1,2, SPEAKER$ ' The 1 is for file #1 and the 2 is for position # 2
CLOSE #1
CHURCH$ = "" ' clearing the inputs to see what the file will do.
SPEAKER$ = ""
OPEN "CNAME.DTA" FOR BINARY AS #1
GET 1,1, CHURCH$
GET 1,2, SPEAKER$
CLOSE #1
PRINT "CHURCH = ";CHURCH$
PRINT "SPEAKER = ";SPEAKER$
END
'THE COMPUTER OUTPUT IS
CHURCH = FASSEMBLY
SPEAKER = ASSEMBLY
Why Does Church come out as FASSEMBLY?
What Am I doing wrong?
Please Help
CLS
INPUT "CHURCH ";CHURCH$ ' I use FIRST as input
INPUT "SPEAKER ";SPEAKER$ ' I use ASSEMBLY as input
OPEN "CNAME.DTA" FOR BINARY AS #1
PUT 1,1, CHURCH$
PUT 1,2, SPEAKER$ ' The 1 is for file #1 and the 2 is for position # 2
CLOSE #1
CHURCH$ = "" ' clearing the inputs to see what the file will do.
SPEAKER$ = ""
OPEN "CNAME.DTA" FOR BINARY AS #1
GET 1,1, CHURCH$
GET 1,2, SPEAKER$
CLOSE #1
PRINT "CHURCH = ";CHURCH$
PRINT "SPEAKER = ";SPEAKER$
END
'THE COMPUTER OUTPUT IS
CHURCH = FASSEMBLY
SPEAKER = ASSEMBLY
Why Does Church come out as FASSEMBLY?
What Am I doing wrong?
Please Help