ralph
12/31/2011 6:20:00 PM
On Sat, 31 Dec 2011 09:11:37 -0800, BeeJ <nospam@spamnot.com> wrote:
>I use this to suck all the data in.
>But this time I got an
> input past end
>error.
>I created the file and it is all text using Print lFNbr.
>What can cause this to fail?
>
> vLOF = FileSizeGet(sDPName)
>
> lFNbr = FreeFile
> Open sDPName For Input As #lFNbr
> bOpen = True
> ' one suck
> sLines = input(vLOF, lFNbr)
>
>and Yes
> LOF(lFNbr) ' gives the same value as vLOF.
>using FileSizeGet since it handles large files.
>
Or if text ...
> vLOF = FileSizeGet(sDPName)
>
> lFNbr = FreeFile
> Open sDPName For Input As #lFNbr
Do Until EOF(IFNbr)
sLine = Input(vLOF, LFNbr)
...
Loop
-ralph