Around 02:04pm on Sunday, May 25, 2008 (UK time), Dave Housel scrawled:

> 
> I am working with a program which by design must read sequential lines of a
> .csv file. An exerpt of the code is listed below.
> 
>  My question is, what increments the line that is read into the string
> variable "Params"? The "FileNum" is set once in the begining and I'm not
> aware of anything that would change it.  Does ReadFileLine automatically
> increment?  I don't know for sure that this program actually works. It was
> given to me as an example of how what I need to code was done in the past. 
> Thanks.

FileNum refers to the whole file, not the individual record (line).

Presumably ReadFileLine maintains always rads the next record, and
returns an emptyu string when it reaches the end, but you would need to
show the code for us to know that.  Also (presumably) this would end
early if the file had an null string as one of its records.

Steve

-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?

 14:52:44 up 2 days, 19:24,  1 user,  load average: 0.38, 0.15, 0.07

Reply via email to