Sir, fp is a pointer so it will hold the address of buffer [0] means the first element of the buffer.Therefore ,here you put the characters in the file by the pointer and so ch[i] when i =0 will put w but in the second time you don't increase the value of fp so how the hole string will be print on the file as fp is still pointing to the first element and don't move on the second bit . Briefly , I was saying as Ch[0]=fp then in second time it should be Ch[1]=fp+1; Please solve my doubt . 9:14
@suhaibkhan4956 Жыл бұрын
ch[0] reads first character and write it at the location where fp pointer points then after ch[1] takes the second character and writes it at new fp pointer location because fp pointer increments of its own to next location when dealing with the file pointer. if i am not wrong
@Raj-yi1ud Жыл бұрын
Sir your explanation is awesome. But sir I have a doubt please solve it I am very confuse in that . As the address of the first character of the file must be in the file pointer .Then in the while loop why we are not incrementing the fp(file pointer) for the checking the end of file. 9:17
@GovindKumar-jl5ob3 жыл бұрын
Bahut sundar
@de3wanclassroom7784 жыл бұрын
nice sir
@aliabbas6322 жыл бұрын
Nice
@Victory-cn4cw3 жыл бұрын
Please one more video upload on File handling Much Data in file ,some data cut from file and paste in other file but cut from top to bottom
@ttitrends3 жыл бұрын
Write mode opens the existing file and if there is no file , then it will create new file sir. if i am not wrong.
@ngtutorials3 жыл бұрын
Yes
@surajmukhiya26432 жыл бұрын
Sir, ek baat bolu galat lage to forgive me. Sir aacah hota agar pahile aap file create karna sikhate uske baad koi dusra operation perform karna sikhate.
@shahilpatel93923 жыл бұрын
Sir 1 Suggestion :; Please don't use Turbo C for coding it's better to use VS Code or Code Blocks.