Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNios II ISS
Hi everybody, Am trying to prototype how I can effectively use the niosII read-only zip filing system. Am currently using the example that came with the development board and I have follo...
Altera_Forum
Honored Contributor
21 years agoThanks for the info. Here is a copy of part of the zip file example code:
int main(void) { FILE* fp = NULL; /* * Open and print contents of ZipFS file 1. */ printf("Reading file 'file1.txt' from ZipFS...\n"); fp = fopen("/mnt/rozipfs/file1.txt", "r"); if (fp == NULL) { printf ("Cannot open file.\n"); exit (1); } print_file_contents(fp); fclose (fp); . . . . return 0; } It got stucked at the " printf("Reading file 'file1.txt' from ZipFS...\n");" function and it does'nt advances beyound this point. Cheers, joo21