I have a small risc processor system using linux. I want to read/write to a file on a windows machine that is connected using a cross-over rj45 cable. I have tried many permutations but with no success.
My c code looks like the following:
fp = fopen("/temp/data.txt", "w+");
I have also tried:
fp = fopen("/169.254.5.155/temp/data.txt", "w+");
with lots of variations of the " / "
The IP is that of the PC I want to talk to.
The temp folder is at c:\temp on the windows machine and is set to share.
When I run my c code on the linux machine, I get Segmentation fault
What am I doing wrong?
My c code looks like the following:
fp = fopen("/temp/data.txt", "w+");
I have also tried:
fp = fopen("/169.254.5.155/temp/data.txt", "w+");
with lots of variations of the " / "
The IP is that of the PC I want to talk to.
The temp folder is at c:\temp on the windows machine and is set to share.
When I run my c code on the linux machine, I get Segmentation fault
What am I doing wrong?
Comment