You have to use a fixed-length string

by qbguy


Text Parser - HELP!
by Souylsin

Alright, I'm trying to create a text parser (Goes through a text file byte by byte and prints whats inside it.) But Its not working, could you help me fix my problem or even re-write a whole new code?

[code]

CLS

x = 1

Also, you should use a loop WHILE NOT EOF(1). The way you are doing it, it is merely a for loop except obfuscated a bit. You could have done FOR X=1 TO 999: {whatever}: NEXT rather than using a DO loop like you did.
OPEN "Text.txt" FOR BINARY AS #1

DIM x AS STRING*1

WHILE NOT EOF(1)

GET #1,, x

PRINT x;

WEND

CLOSE #1
[/code]

Posted on Mar 25, 2008, 7:26 PM
from IP address 74.56.158.252

Respond to this message

Goto Forum Home

Posted on Mar 26, 2008, 3:50 PM
from IP address 75.9.218.72

Respond to this message   

Goto Forum Home