#include <stdio.h>
...
FILE *f = fopen ("name", "mode");
fopen()
FILE* fopen(<filename>, <mode>); E.g., FILE* f = fopen("C:\\Users\\<user_name>\\My Documents\\data_file.dat", "rb"); Opens the specified file for reading ("r") in binary mode ("b").
Use function open or creat or fopen.
Is it a file or a folder you want to create? Use open/creat/fopen for the former, mkdir for the latter.Example:FILE *f;int rc;rc= mkdir ("C:\\AA");if (rc) perror ("Error in mkdir");f= fopen ("C:\\AA\\MYNEWFILE.TXT", "w");if (f==NULL) perror ("Error in fopen");
FILE* file; file = fopen("some-file.dat");
In Visual C++, or C# you can use static method Directory or non-static DirectoryInfo.
1. open the file: fopen (name, "w+") 2. write into it 3. rewind 4. read from the file
You can use any usual C-functions like fopen/fclose or open/create/close.
How the turbo c plus plus use what in the computer.
Just use fopen function and use the mode as rb+ If u need further help mail me to arunkant4pro@gmail.com
1. You (human) want to read an include file: use a text editor. 2. Your program wants to read a file: use open/fopen.
To read PHP files using fopen in PHP, you would first need to open the file using fopen with "r" mode. This opens the file for reading. Remember to check if the file opened successfully, and then you can use functions like fread to read the content of the file. Finally, close the file with fclose when done.