Forum: Object-Pascal / Delphi-Language
Delphi
by marabu,
21. Feb 2006
Hi Silvia,
don't panic...
If you decide on a blocksize of 1 byte you must use a read / write count of SizeOf(Integer) - and everything falls in place.
Good Luck
marabu
Forum: Object-Pascal / Delphi-Language
Delphi
by marabu,
19. Feb 2006
One more thing to mention is, you assign a block size when opening the file. You should make a decision:
// either
Reset(Mfile, 1);
BlockRead(Mfile, tmp, SizeOf(Integer));
// or
Reset(Mfile, SizeOf(Integer));
BlockRead(Mfile, tmp, 1);