From: udo klasmeier (uklasmeier_at_t-online.de)
Date: 2001-08-23 21:09:06
Hello friends,
i still have problems with file-io, although i think i followed the rules.
here is a a small piece of code.
int OpenOutput(char *fn,int fnr){
char cmd[64];
int rc;
sprintf(cmd,"s:%s",fn);
rc=cbm_open(15,A_DVN,15,cmd);
cbm_close(15);
sprintf(cmd,"%s,s,w",fn);
rc=cbm_open(fnr,A_DVN,fnr,cmd);
if(rc){
DispError("Open-Out-Fehler");
return 1;
}
return 0;
}
the complete code can be downloaded from
http://home.t-online.de/home/uklasmeier/pub/
VERSION1.C
the open returns rc=5
sometimes a rc=2
the same is for the OpenInput which is similar.
U.Klasmeier
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET