filesize
Kenneth Brody
kenbrody at bestweb.net
Fri Mar 14 14:09:03 PDT 2008
Quoting Jeff Harrison (Fri, 14 Mar 2008 14:04:54 -0700 (PDT)):
> --- Kenneth Brody <kenbrody at bestweb.net> wrote:
[...]
>> Note that, if you open the file in binary mode, you will be able to read()
>> all 13 characters, but you will also see both 0D's (CR) and the 1A (Ctrl-Z),
>> and you will need to decide what to do with them.
>
> Oh, I know what to do with them! :-)
:-)
> Thanks. I was just looking for some affirmation that
> filesize() will return the actual size of the file.
> Reading the help file made it sound like that was not
> necessarily the case.
Re-read what it says:
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.
The discrepancy is between the file size and the number of bytes that
you can read. As in the above example, the file size is 13, but you
can only read 10.
[...]
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list