Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAbout host file system
I used the altera host file system to open a file .mp3,, is this a legal operation or not? if it is legal then why [[FILE *hostfile =fopen ("/mnt/host/song.mp3","rb");]] return NULL!! can any...
Altera_Forum
Honored Contributor
21 years agoThere is no syntax error when using [FILE *hostfile =fopen ("/mnt/host/song.mp3","rb");]. The reason why it returns NULL is that you have placed your song.mp3 at a wrong place.
Suppose your nios2 project is resided in "D:\altera\nios2\examples\vhdl\niosII_cyclone_1c20\standard\software\mymp3\", then you shall place song.mp3 in this directory. Good luck!