Coding Exercise 27 (File I/O) | C Programming Tutorial in Nepali #91

preview_player
Показать описание
C Programming Tutorial in Nepali, Part 91: Coding Exercise 27 (File I/O).

In this video, we'll write programs by using File IO functions like fgetc, fputc, fprintf and fscanf. The first program that we'll write will check whether a given file is empty or not. We will also write a program that copies a PDF file to another PDF file. The third program will deal with formatted input/output using fscanf and fprintf function to read version of a software from the file and export it to JSON format.

Chapters
========
01:17 Questions
01:23 Solution of Problem 1
06:52 Solution of Problem 2
18:36 Solution of Problem 3

Follow me on:

#CProgramming #BikalpaCodes #BikalpaDhakal
Рекомендации по теме
Комментарии
Автор

Keep Going ! You are an excellent tutor.

abhilekhgautam
Автор

Thank You bro!!! By the way I am having trouble with reading and writing pdf file. The report_copy.pdf file says corrupted.
CODE:
#include <stdio.h>

int main()
{
char data;
FILE *fp1 = fopen("report.pdf", "rb");
FILE *fp2 = fopen("report_copy.pdf", "wb");
while((data = fgetc(fp1)) != -1)
{
fputc(data, fp2);
}
fclose(fp1);
fclose(fp2);
}

giverse
welcome to shbcf.ru