Blitz (65/213)

From:James L Boyd
Date:15 May 2000 at 00:58:24
Subject:Re: Bug in Lof?

Two things: make sure your variable storing Lof is a long, and secondly,
remember that the length of the file includes position 0, so the position of
the last byte is Lof-1...

Don't know if that's any use, but something to check anyway...

See ya,



James L Boyd
Team AMiGA/DNRC
Connected from Fife, Scotland.
Death to the Pixies!


----- Original Message -----
From: "Gareth Griffiths" <gazchap@btinternet.com>
To: "Blitz List" <blitz-list@netsoc.ucd.ie>
Sent: Monday, May 15, 2000 12:23 AM
Subject: Bug in Lof?

> Hello,
>
> I think I mayhave found a bug in the Lof(File#) command.
>
> I have an MP3 that is 734900 bytes long, and I want to read the ID3 TAG
info
> from it. I already know that the string "TAG" is present about 128 bytes
> back from the END of the file, and this starts the tag definitions.
>
> However, I ReadFile the MP3, then get its length using Lof, FileSeek to
that
> position minus 128, and then read in a 3char string.
>
> But, it didn't work. So I put in a debug style line after the Lof to find
> ou just exactly what position it was going to....
>
> 14004, not 734900.
>
> What's going on?!?!?! :)
>
> Catch ya later,
> GazChap.
> --
> __/__/__/ __/__/__/ Gareth 'GazChap' Griffiths
> __/ __/ E.Mail: gazchap@btinternet.com
> __/ __/ __/ URL: www.gazchap.co.uk
> __/ __/ __/ Mobile: +44 (0)7788 602270
> __/__/__/ __/__/__/ � Text Message Me Today! �
>
> All extremists should be taken out and shot.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
> For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie