filesize

Jay R. Ashworth jra at baylink.com
Fri Mar 14 13:05:44 PDT 2008


On Fri, Mar 14, 2008 at 12:53:40PM -0700, Jeff Harrison wrote:
> >From filepro's help file:
> "In a text file, it is possible that the value
> returned by FILESIZE() is not the same number of bytes
> that can be read from the file."
> 
> Is there someone out there that can shed a little more
> light on this subject?  Will opening the file in
> binary mode bypass this "possible" issue?

It should.

If you open a DOS text file in text mode, the read routines will
usually eat a CR-LF pair and return (in Unix) a '\n', so you'll lose
one character for each line.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Joseph Stalin)



More information about the Filepro-list mailing list