AndrewWolford
MIS
Hi Everyone,
I have a question about how to handle null values in a text file I'm importing. The txt files that get imported are fixed width. The problem is that a lot of the time these txt files have null values instead of spaces to seperate the fields. So the file would look like:
"Doe,John 10248406 20010105 45684.50**123345"
where * = null value instead of a " " (space).
When I read the txt file into an array VB doesn't seem to recognize the nulls and reads the file in like:
"Doe,John 10248406 20010105 45684.50123345"
I'm using the following code to read in each line of the txt file:
"Line Input #1, fileArray(i)"
Does anyone know how to read in a line of text dealing with null values? I think what I need to do is replace the null values with spaces, but I can't get VB to even recognize that there IS a null value. Thanks for any help!
-Andrew
I have a question about how to handle null values in a text file I'm importing. The txt files that get imported are fixed width. The problem is that a lot of the time these txt files have null values instead of spaces to seperate the fields. So the file would look like:
"Doe,John 10248406 20010105 45684.50**123345"
where * = null value instead of a " " (space).
When I read the txt file into an array VB doesn't seem to recognize the nulls and reads the file in like:
"Doe,John 10248406 20010105 45684.50123345"
I'm using the following code to read in each line of the txt file:
"Line Input #1, fileArray(i)"
Does anyone know how to read in a line of text dealing with null values? I think what I need to do is replace the null values with spaces, but I can't get VB to even recognize that there IS a null value. Thanks for any help!
-Andrew