AW: how to compare file chars with bytes?
Tiemo Hollmann TB
toolbook at kestner.de
Sun Jan 18 03:26:05 CST 2009
I have mixed up two files, which I was processing in a loop.
> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Samstag, 17. Januar 2009 20:57
> An: How to use Revolution
> Betreff: Re: how to compare file chars with bytes?
> Hi Tiemo,
> The number of chars of a text file and the number of bytes of that
> file are equal, if you read the file as binary data. Are you sure that
> you have the file size correct? What numbers do you get? You might
> want to post the relevant part of your script.
> Best regards,
> Mark Schonewille
> Economy-x-Talk Consulting and Software Engineering
> Dutch forum: http://runrev.info/rrforum
> We are always looking for new projects! Feel free to contact us to
> discuss your custom software project!
> On 17 jan 2009, at 20:14, Tiemo Hollmann TB wrote:
> > Hello,
> > sorry for this perhaps stupid question. I want to show a progress
> > bar while
> > reading a file in chunks of chars in a repeat loop.
> > Filtering first the total number of bytes out of the detailed files
> > info I
> > thought I could easily set the read chars in relation of the total
> > bytes,
> > thinking that the number of chars is roughly equivalent to the
> > number of
> > bytes, beside of some overhead here and there, but the numbers are
> > completely different.
> > Obviously I am missing some basics here, but there should be a simple
> > solution for this standard issue?
> > Thanks for correcting me
> > Tiemo
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode