Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1024 string limit
#1
I am trying to do a line input on a text file to retrieve a sinlge CSV line and then parse out the string to get a specific "field" from the line. I noticed some odd return values and realized that I am only getting the first 1024 charaters of the line into my string.

Code:
dim test$
open "test.csv" for input as #1
line input #1, test$

The line being read is 1034 characters and everything past the 1024 mark is being returned in the very next line input read.

Any ideas on how to read the complete line?
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
#2
Maybe this will work?
Code:
s$ = Space$(1034)

Input #1, s$
Reply
#3
Nope.

It appears to be a problem in the LINE INPUT statement. I still only get the first 1024 characters.
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
#4
It was a bug at rtlib, fixed.. changes are on CVS, it may take up to 5 hours to SF update the files for anonymous access..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)