This problem always keep comming up. When reading from a file that has multiple lines during debug (though i only need the first line), the program works fine. But when compiled and trying to read from it, the it somtimes reads the first line as null and i have to make code that will read the second line. In notepad it says it's the first line.
VB Code:
Open Filename For Input As #1 Line Input #1, File_Contents Close #1
^^^^^ Code used.
Any way, what i want to know is how to load the entire file contents into a string. No matter how many lines or what ever else.
If i had this stored in a file:
QWERTY
ASDFGH
ZXCVBN
and loaded it, i want it to look like this in a string "QWERTYASDFGHZXCVBN"
Can anyone help me out?




Reply With Quote