Click to See Complete Forum and Search --> : reading from file


ibbly
October 19th, 2001, 09:25 AM
Does anyone know how to read a line of input and get all control characters...it seems to be stripping them out before I get it into evaluate in code.

Any ideas?

thanks for any help you can provide.

Cakkie
October 19th, 2001, 11:40 AM
If you read a line using the Line Input statement, VB will automaticcaly strip off the carridge return and linefeed characters.
What you could do is read the file in one time, and then loop through the string looking for vbcrlf using the Instr function. However, this may get very slow when you are dealing with large files.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook