Rodney Dowdall(deleted)
12/17/2008 10:27 PM
post18909
|
> #include <stdio.h>
>
> int main()
> {
> FILE *fp;
> char c;
>
> fp = fopen( "ReferenceProj.dat", "r" );
>
> if (fp!= NULL)
> {
> while( (c = getc( fp )) != EOF ){
> putchar(c);
> }
> }
> else
> {
> perror( "Unable to open file" );
> }
> fclose( fp );
> }
>
> This is my code,i have created file on windows disk.
That's the problem. The file has to be on the Neutrino system. The Neutrino system does not have access to the Windows
filesystem. When you run your application it runs on the Neutrino system and knows nothing about Windows.
Windows is the host. It is where you write your code and do your compiles. Your Neutrino target is where the code must
run, and therefore is where the file must exist.
Try this, log in to the Neutrino system as root. Then "cd /". Now do "find ReferenceProj.dat". Post that output here.
Thanks,
Rodney
|
|
|