Files
super6502/sw/test_code/fs_test/main.c

24 lines
465 B
C

#include <stdio.h>
#include <filesystems/fat32.h>
#include <conio.h>
void fat32_init(void);
char data [256];
int main(void) {
int8_t fd;
size_t i;
size_t nbytes;
fat32_init();
/* This is what is going to be part of open */
fd = fat32_file_open("VERYLA~1TXT");
cprintf("fd: %x\n", fd);
while ((nbytes = fat32_file_read(fd, data, 256))){
for (i = 0; i < nbytes; i++) {
cprintf("%c", data[i]);
}
}
}