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 agoIt doesn't work that way. The code is executed on the Nios CPU, not on the PC, and the Nios system is not able to create a file on the PC. If you want to transfer data from the Nios system to your PC, you'll have to make your own protocol (or print text on the Jtag UART interface and copy-paste, if you don't have a lot to transfer).