in reply to Zero being added when reading from filehandle?
How is lastcount being added to the file in the first place? Is there a sprintf involved somewhere in that operation?
Are you absolutely sure that there is not a zero in the file?
Dave