AW: how to compare file chars with bytes?

Tiemo Hollmann TB toolbook at kestner.de
Sun Jan 18 04:26:05 EST 2009


Hi Mark,
I have mixed up two files, which I was processing in a loop.
Thank you
Tiemo



> -----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
> http://economy-x-talk.com
> http://www.salery.biz
> 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:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list