Skip to main content

FileReader

1 reply [Last post]
sooz719
Offline
Joined: 2007-04-16
Points: 0

I'm trying to make a Lexical Analyser. So I need to read in a text file, but then how can I read one character at a time as opposed to one token at a time? subsequently setting each value to currentChar, until I want to use the next char.

Thanks for any help

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tarbo
Offline
Joined: 2006-12-18
Points: 0

Ehm... FileReader.read() ?