top of page
Search

Fgets-multiple-lines-stdin

  • helainelorraine507
  • Jan 28, 2022
  • 1 min read
Feb 26, 2020 — Write a program in C to write multiple lines in a text file. ... fptr = fopen (fname,"w"); for(i = 0; i < n 1;i ) { fgets(str, sizeof str, stdin); fputs(str, fptr); } ...












fgets-multiple-lines-stdin


3925e8d270





 
 
 

Recent Posts

See All

Comments


© 2023 by CONSULTING SOLUTIONS. Proudly created with Wix.com

  • c-facebook
  • Twitter Classic
bottom of page