steve g <Sgon…@gmail.com> wrote:
> --==-=-=
> Content-Type: multipart/mixed; boundary="=-=-="
>
> --=-=-=
> Content-Type: text/plain
> Content-Transfer-Encoding: quoted-printable
>
>
> I am working on a project and came across the need to read files very
> easily. I created this package for SBCL. If you need or want a rather
> fast read-file function; Just run make, load, the compile.
>
> I know this is not a binary group, I'll try try and attach the base64.
>
> I have been using this version of file-length-by-name for quite some
> time. It seems more accurate that stat. It just uses lseek.
Exactly how is that supposed to be "more accurate that stat"? How do you
think the kernel figures out the file size returned by stat? It is not
"eyeballing" the file and going "yeah, looks about 1234 bytes, give or
take a few", it reads that fromt the inode. Same source of truth it uses
when you lseek to the end of the file.
Kind regards,
Alex.
--
"Opportunity is missed by most people because it is dressed in overalls and
looks like work." -- Thomas A. Edison