Write a program to create a file and write some
contents in it. Then read the file and count and
print total number of lines in it.
Answers
Answered by
0
Answer:
1) Step by step descriptive logic to create a file and write data into file.
- Input data from user to write into file, store it to some variable say data.
- Declare a FILE type pointer variable to store reference of file, say FILE * fPtr = NULL; .
- Create or open file using fopen() function. ...
2) C program to print odd line contents of a File followed by even line content · C++ program to read file word by word. Article Tags : C · cpp-file-handling.
Hope it helps you!
Please mark me brainliest!
Similar questions