Forum Discussion
Altera_Forum
Honored Contributor
16 years agofail to create output file - simple io problem
Any idea what is wrong with the code below? The code failed to create the sample.txt file. Runtime error. #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> ...
Altera_Forum
Honored Contributor
16 years agoWhere do you expect the file to be created? What operating system do you run the Nios on?
If you have installed a writeable filesystem, I guess you'd at least have to give an absolute path.