Re: Problem with binary file

[ Follow Ups ] [ BasicCard User Forum ]

Posted by zeitcontrol ( on April 08, 2003 at 06:35:56:

In Reply to: Problem with binary file posted by henrik on April 08, 2003 at 05:24:04:

Currently there is a limitation regarding size of BasicCard file system, which cannot exceed 16kB. You should check this limit is not exceeded.

Within card program you should not use the @ drive option since this is for use in BasicCard terminal only to differ between local files and card files. So here use e.g. "\mydir\myfile" instead.

Further it is strongly recommended to check predefined FileError variable following each file operation. E.g.

ROMaddress% = &H1fe
FileError = 0
file@=Open "\mydir\myfile" For Binary Access Read
Get file@,ROMaddress%,hashblock$,32
close file@
if 0FileError then
' do error handling here
end if

With error code of FileError it should be possible to find the reason of the problem. You find a list of all FileError codes within chapter 4.12 "The Definition File FILEIO.DEF" within your BasicCard manual.

Follow Ups:

[ Follow Ups ] [ BasicCard User Forum ]