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