Writing in a File using a file descriptor [message #1818776] |
Fri, 27 December 2019 20:42  |
Eclipse User |
|
|
|
Hello,
I am using eclipse 2019-09 in Ubuntu GNU Linux. For a C project I need to write Data into a file, I use a file descriptor to achieve the latter.
FILE* output_up123;
output_up123 = fopen("../../Output/up123.txt","w");
fprintf(output_up123," test text \n");
The code with the above file descriptor compiles, and does the job, but only when I run the binary from the linux shell. However, the binary cannot be run in Eclipse (see printscreen in attchment), this leds me to the conclusion that I have the change some eclipse settings, but I could not figure out, what I have been missing.
Can somebody please tell me, how I have to configure Eclipse, so that I can use file descriptors and run the binary from within Eclipse.
Many thanks in advance.
Andreas
Attachment: eclipse.png
(Size: 207.46KB, Downloaded 205 times)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05836 seconds