00001 included "fsee.h"
00002
00008 void test(void) {
00009 FILE f;
00010 BYTE c;
00011 BYTE filename[12];
00012
00013
00014 fsysInit();
00015
00016
00017 strcpypgm2ram((char*)filename, (ROM char*)"myfile.txt");
00018 f = fileOpen(filename, 0);
00019
00020 if (f == FILE_INVALID )
00021 {
00022
00023 }
00024 else if ( f == FSYS_NOT_AVAILABLE )
00025 {
00026
00027 }
00028 else
00029 {
00030 while (1) {
00031
00032 if ( fileIsEOF(f) ) {
00033 fileClose(f);
00034
00035
00036 break;
00037 }
00038
00039
00040 c = fileGetByte(f);
00041
00042
00043 if ( fileHasError(f) ) {
00044 fileClose(f);
00045
00046
00047 break;
00048 }
00049 }
00050 }
00051 }