Hi,
I heard that there are some of the people that support(ed) SASC here,
so i thought that this might be a good place for this...
I am porting some code over from a UNIX box which does not seem to be
working on the Amiga.
The general scenario is that there is a class called database which
uses a binary tree data structure and this is the top of the function
that should open a file and read it into the structure:
int database::file_open(ifstream &file, node *& root1)
{
if (!file)
return 0; //file would not open - eject!
file.seekg(0, ios::end); //goto end of file
int eofile = file.tellg(); //find size of file.
etc...
the problem is that eofile is always coming back as 0 (when i know the
file is much larger). This code works fine with gcc and visual c. Is
this likely to be a difference in the Amiga implementation, a bug in
my code, or a problem with SAS?
Many thanks,
Rick.