question about file i/o in C is SOLVED 
Author Message
 question about file i/o in C is SOLVED

Hello I am the poster of

>   FILE *fp;
>   fp=fopen("C:\test.txt","r");
> This program will not find the file unless it is run from the same
> directory the file test.txt is in.  Say for example test.txt is in the
> root directory, and i run this program from C:\work
> It will exit and fp is null.

Thank you for all your postings.  I believe I have solved the problem by
using c:\\

Thanks again,

Wed, 05 Jan 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Newbie: separate big .cs file into small .cs files

2. resx files needed for cs - files ??

3. CS files display in VS6 like CPP files ?

4. Include code in other Cs files

5. Reuse of cs files, namespace, arch advice pls

6. How to Generate .cs file at Runtime

7. Two CS files (using namespaces)

8. My .cs files were deleted!?

9. manipulating server controls in the Codebehind .cs file

10. *.~cs files

11. Custom Class.cs default file

12. Printing .cs files


Powered by phpBB® Forum Software