Re: [lbpp-devel] Problems with LOF and INPUT$
Status: Inactive
Brought to you by:
aliguori
|
From: Anthony L. <aj...@be...> - 2001-12-18 14:25:21
|
Michael Rankin wrote: > When I print LOF it shows the byte size as 0. > > Open "fialdialog.bas" for input as #test > Print LOF(#test) > Close #test > End Alas, LOF does not work yet ;-) This is due to the fact that I have to see if Windows supports fstat (which I think it doesn't). The architecture is there atleast. basic_io.c has a function called something like lb_file_lof that actually takes a FILE *f so it would be ridiculusly easy to support it. I'm just trying to keep from having to have seperate versions of basic_io.c for different platforms ;-) > I don't believe INPUT$ is working either > > Open "fialdialog.bas" for input as #test > > For x = 1 to 10 > Print INPUT$(#test, 1); > Next x > > Close #test > End > > It should print out the first 10 characters, but it prints nothing. > If I remove the ";" it will print 10 blank lines. Yeah, this function was just stubbed out :( I actually support it prior to the device architecture implementation and then never went back and fixed it :( It's fixed now though and will be in the next release. Removing the ; will print newlines because the absence of a ; will send a new line to the file. This should be similiar to how LB works. Regards, Anthony |