Hi Roberto,
Wolf is right,
You should use the uart to transmit your file from nios to your pc
On the pc side you will need to write a program that will read this transmitted chars and will write them to a file.
Try to read n2cpu_nii5v3.pdf it is found in the document under your installation, you will find there a chapter about UART
Try using # include <stdio.h>
FILE* fp=fopen(YOUR_UART_NAME,"r+");
fprintf(fp,"what ever you want to transmit on uart");
fclose(fp);
This is the way to transmit char over uart.
YOUR_UART_NAME was defined as you added the uart component on SOPC
You can find this name in a file called system.h
The system.h describes your design and can be found under
YOUR_PROJECT_syslib\Debug
have fun
Ilan