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

OPEN "Text.txt" FOR BINARY AS #1

DO

GET #1,x, t$

x = x + 1

PRINT t$

LOOP UNTIL x = 100

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


Response TitleAuthor and Date
You were so close, too. Try this ---->Pete on Mar 25
How is this a parser? All it does is emulate the TYPE command (or cat command on Linux)qbguy on Mar 26
You have to use a fixed-length stringqbguy on Mar 26