Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Hi I have the same problems the guy above is having. My C code is quite small: #include
<stdio.h> #include
"system.h" #include
<string.h> #include
"altera_avalon_jtag_uart.h" #include
"altera_avalon_jtag_uart_fd.h" #include
"altera_avalon_jtag_uart_regs.h" int
main() { char
* msg = "Detected the character 't'.\n"; FILE * fp; char
prompt = 0; fp = fopen ("/mnt/host/test.txt", "r+"); //Open file for reading and writing --- Quote End --- Hi, I wanted to ask you? where is the test.txt file in reference to your Nios II EDS build for Eclipse software? I am tryuing to read from a textfile, but I don't know where to put my text file? In the Project worskspace? or where? could someone help me please? Thank you