Program 130 #P130 File handling C Program to Read a Line From a File and Display it #C259

Subscribers:
10,700
Published on ● Video Link: https://www.youtube.com/watch?v=2DvR167Wyj8



Duration: 2:08
148 views
12


The expression %[^\n] in C is used for generally reading the whole line. Let's say scanf(“%[^\n]”, x); So the above instruction will read all the characters until it reach end of file(EOF) or \n(next line) and put them in x.

If the file program.txt is not found, this program prints error message.

If the file is found, the program saves the content of the file to a string c until '\n' newline is encountered.

|| Like-Comment-Subscribe-Share ||
||Support and Subscribe ||
#rubalsolutions #coding #developer #programming #programmer #technology #clanguage #computerscience #c #informaticpractices #sub #subscribe #youtube #newyoutuber #youtubechannel

To Install Turbo C++ 4.5 Click on Below Link and Download rar file and extract and then install..
address updated by app.box.com on 8 april
https://app.box.com/s/soz2137zo0rv0sb08pf4upzgj01umfjr

Do Like,Comment,Share and Subscribe if u are learning little bit.
Please give me suggestions in form of comment box .

Link To My Blog - https://www.blogger.com/blogger.g?blo...
Like me on Facebook @ https://www.facebook.com/rubalsolutions/
Follow me on Twitter @ https://twitter.com/ruby0071
Follow me on Instagram @https://www.instagram.com/er.rubal/
Email me at :- ruby0071@gmail.com
Youtube Gears / devices & equipements
1. DSLR Camera : https://amzn.to/2ZIIEvL
2. Microphone : https://amzn.to/2DGHwiR
3 Regular Camera: https://amzn.to/2Lgkgyp
4 Mic https://amzn.to/2ZJxkPP
5 Microphone https://amzn.to/2LeKvFc
Recording Microphone Mic & Tripod Stand for Laptop
https://amzn.to/2WCV5a8
Mini Professional Handheld Microphone Compatible with Xiaomi, Lenovo, Apple, Samsung, Sony, Oppo, Gionee, Vivo Smartphones (One Year Warranty)
https://amzn.to/2HRp1fj
********************************************************************
Our Video's Categorized In Different Playlist
*******************************************************************
Playlist for C Programming
https://www.youtube.com/watch?v=3l7QFOHaiUs&list=PLtUZeWk8rCCbRvRKsaBoz_5-SPIILeXJ3
*******************************************************************
Playlist for नवरात्रि की 9 कहानी
https://www.youtube.com/watch?v=vsyKFhu5VDg&list=PLtUZeWk8rCCbtaNBMvtz_WV3_4o3EM6MX
*********************************************************************
Playlist for Class 6th || CBSE || computer science || Course Book ||
https://www.youtube.com/watch?v=I6AaJc5Aolw&list=PLtUZeWk8rCCbwnOz5SNWgyNeestDtIyYU
********************************************************************
Playlist for FULL FORMS (Commonly Used Full FORMS )
https://www.youtube.com/watch?v=zn_0-TKAeHw&list=PLtUZeWk8rCCZTG37ebv8LSCRif35YFf6p
*******************************************************************
Playlist for Class 5th || CBSE || computer science || Course Book ||
https://www.youtube.com/watch?v=xdQeHaQv8-Q&list=PLtUZeWk8rCCZwrrJ9tvWULXmk-BnRVt-g
*******************************************************************
Playlist for Class 4th || CBSE || computer science || Course Book ||
https://www.youtube.com/watch?v=MUILA7lkql8&list=PLtUZeWk8rCCaqnVK_PLkPF3wyRGKHY9Op
*******************************************************************
Playlist for Class 3rd || CBSE || computer science || Course Book ||
https://www.youtube.com/watch?v=iVGs0Z3NkI4&list=PLtUZeWk8rCCYT-RWMkXrgfrs-xBVi7qWi
******************************************************************
Playlist for Class 2d || CBSE || computer science || Course Book ||
https://www.youtube.com/watch?v=NRNyqFYes0M&list=PLtUZeWk8rCCbCGbMyc03ICrv3yrEZrcJZ
********************************************************************




Other Videos By Rubal Solutions


2019-06-04Program  139 #P139 C PROGRAM ALPHABET H c program for pattern of ALPHABET H #C269
2019-06-03Program 138 #P138 C PROGRAM ALPHABET F c program for pattern of ALPHABET F #C268
2019-06-02Program 137 #P137 C PROGRAM ALPHABET E c program for pattern of ALPHABET E #C267
2019-06-01Program 136  #P136 C PROGRAM ALPHABET D c program for pattern of ALPHABET D #C265
2019-05-30Program135 #P135 C PROGRAM ALPHABET C c program for pattern of ALPHABET C #C264
2019-05-29Program134 #P134 C PROGRAM ALPHABET B c program for pattern of ALPHABET B Print B with Astrik#C263
2019-05-28Program 133 #P133 C PROGRAM ALPHABET A c program for pattern of ALPHABET A Print A with Astrik#C262
2019-05-26Program 132 #P132 C program for appending in file to read name and marks previously exits . #C261
2019-05-26Program 131 #P131 Write a C program to read name and marks of n number of students #C260
2019-05-26सकारात्मक सोच की शक्ति - A Positive Useful Story - Motivational Story - कहानी
2019-05-24Program 130 #P130 File handling C Program to Read a Line From a File and Display it #C259
2019-05-24Program 129 #P129 File handling C Program to Write a Sentence to a File function #C258
2019-05-24Program 128 #P128 C program File handling : FSEEK() FUNCTION How to use fseek( ) function #C257
2019-05-23Program 127 #P127 C program File handling : Read from a binary file using fread() Working Code #C256
2019-05-23Program 126 #P126 C program File handling : Write to a binary file using fwrite Working Code #C255
2019-05-22Program 125 #P125 C program File handling : Read from a text file using fscanf() Working Code #C254
2019-05-21Program 124 #P124 C program File handling : Write to a text file using fprintf() Working Code #C253
2019-05-20Theory - C Programming File Handling || Learning C Programming || #C252 CONCEPTS FOR FILE Structure
2019-05-16Program 123 #P123 C program for demonstrate dynamic memory allocation in structures #C251
2019-05-16Program 122 #P122 C program for passing structure by reference #C250
2019-05-16Program 121 #P121 C program for passing structure to a function #C249



Tags:
c course
c programming language
c programming language tutorial for beginners
computer education
rubalsolutions
coding
developer
newyoutuber
subscribe
sub
computer-science
subscribeandsupport
c language
filehandling
files in c
fprintf
fscanf
fclose
fcloseall
exit
reading from file
file pointer
file
modes to open a file
read
write
append
r mode
w mode
a mode
text files
binary files
file streams
file handling programs
fopen
file handling in c