file = fopen("numbers.txt", "r");
this way you can open a file in your working directory.
file = fopen("/home/student/numbers.txt", "r");
this way, you can give the path and open a file.but i don't know how search for a file and open it.if someone can help me...
yes
of a file name with path.
A path name is the location of the file name. example: C:\Users\Desktop\Example.txt A file name is file itself. example: Example.txt
open, read/write, close
File handling is simply the process of opening, reading, writing and closing files. Files are simply streams for input and output, or the "serialisation" of objects. In other words, reading and writing data to and from disk storage.
program file in c:\ drive
File is a place where information or data is stored. we make use of some of the file-handling functions in c like: fopen()-for opening a file. fclose()-to close a file. Every file being opened for any operations like: "r"- Read-Only mode. "w"-Write-only mode. "a"-append mode. "r+"-read+write mode. "w+"-write+read mode. "a+"-read+append mode. We should make use of FILE pointer ,in order to perform any such operations on the files. There are many input and output functions used along with files. fgetc() fgets() fscanf() fputc() fprintf() fputs() fseek() rewind() File handling is used to read or write a file without directly opening it.its contents are opened in another files by using above specified commands in c++ programming for file handling we have to use a header file but in c noheader file regarding to file handling is required
yes sir
C:\windows\winn.sif
Don't store pointers in files, it makes no sense.
C:\pagefile.dat