Program 130 #P130 File handling C Program to Read a Line From a File and Display it #C259
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
********************************************************************