hi
i am trying to read a sequential text file line by line using the command
Line Input #1, scratch
so the entire line will be read into the string "scratch".
i have done this many times before and it works fine, however i have a file that i am reading and this command appears to be loading the entire text file into the variable "scratch"...i ran several cases to show this is what is happening.
the text file was generated by a program in UNIX and it opens and appears fine in WORDPAD on a PC.....but i believe the problem may be that there are no carraige returns or line feeds at the end of each line even thought the file looks fine in WORDPAD.
how can i read each line of this file in a VB6 program?
thanks for your time.
daveleo
i am trying to read a sequential text file line by line using the command
Line Input #1, scratch
so the entire line will be read into the string "scratch".
i have done this many times before and it works fine, however i have a file that i am reading and this command appears to be loading the entire text file into the variable "scratch"...i ran several cases to show this is what is happening.
the text file was generated by a program in UNIX and it opens and appears fine in WORDPAD on a PC.....but i believe the problem may be that there are no carraige returns or line feeds at the end of each line even thought the file looks fine in WORDPAD.
how can i read each line of this file in a VB6 program?
thanks for your time.
daveleo