Forum Discussion
AAlas3
Occasional Contributor
6 years agoHost File System not working
Hey, I built a simple Qsys system with Nios inside it and I would like to write and read from file in host machine, so I wrote the following: #include "stdio.h" #include "alt_sys_init.c" int main...
AAlas3
Occasional Contributor
6 years agoIt is enabled, anyway I solved the problem: In code when you fopen a file you should write "/mnt/host" with the file path and the pointer will locate the project directory
By the way my name is Ahmad and it is pleasure sir to meet you
Yogesh
Occasional Contributor
5 years agoSo suppose there is a read.txt file in project directory along side main.c code with path as below :
E:/folder1/project/read.txt
What should path of read.txt shd be in main.c file?
mnt/host/read.txt ???
E:/folder1/project/read.txt
What should path of read.txt shd be in main.c file?
mnt/host/read.txt ???