Re: Read & Write Binary Files

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 27 Nov 2006 12:23:39 -0800, ags <guest at RapidEuphoria.com>
wrote:

>Pete Lomax wrote:
>> >Curiously enough I don't see a tell() in the Euphoria reference... I guess
>> you have to keep track of that yourself?
>> I think you meant where().
>
>Ah, thanks for that.  That's a bit confusing, considering it's ftell() in C... 
Well, just to dot the i's; basically (in windows anyway), afaict, both
where and ftell must ultimately be saving results from SetFilePointer,
at least for seek -1, so (cmiiw) both clib and/or eu backend do
manually keep track of it for the app developer. There really is no
such thing as a low-level windows API call Get FilePointer.

Not that you probably wanted to know.

Now I think about it, where() may not have been the best choice for
this function (neither is ftell), maybe get_file_position()?

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu