Discussion :: Input / Output - General Questions (Q.No.3)
|Kushbu said: (Feb 4, 2011)|
|The fp is a structure which contains a char pointer which points to the first character of a file.|
|Royal said: (Dec 30, 2012)|
|FILE is a structure, can any one give me the FILE structure members?|
|Himanshu said: (Oct 15, 2014)|
|But what does are of fopen ("trial", "r") mean?|
|Varsha said: (Oct 25, 2014)|
|Why we use f or why we write printf?
What doesn't mean?
|Madhu said: (Dec 10, 2014)|
Trail-name of the file.
R-reason of it's opening (read, write,...).
|Vishu said: (Dec 16, 2016)|
fopen("trial","r") ---> here 'trial' is the name of the file and you open that file and reading the content of the file. That's all.
|Hanuma8182 said: (Jul 12, 2017)|
|Trial is a filename and 'r' refers to read mode.
fp is the pointer of type FILE (datastructure).
fp has a reference of file and points from the first character of the file "trial".
|Hariom Dhangar said: (Aug 29, 2019)|
|What is fopen?|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.