Altera_Forum
Honored Contributor
15 years agoOutput files to host
I want my NisoII Processor send real-time information to the host, and write these information into a file.
This is my C code. FIFE* fp=fopen("/mnt/host/h.txt"); if(fp==NULL){ printf("Error in opening file\n"); return -1; } fprintf(fp,"Hello world\n"); fclose(fp); return 0; This code will work well in debug mode step by step, and it will generate a file named h.txt in my host PC machine. But It will not work in release mode. Can anyone help me? Thanks