Question: I need a c program that reads a file line by line and extracts each line and puts each line in its own char string
I need a c program that reads a file line by line and extracts each line and puts each line in its own char string
Example file:
hello: its nice
goodmorning: bye
billy: red
THE FILE WILL HAVE NO BLANK LINES INBETWEEN THE LINES, I JUST CANT WRITE IT THAT WAY ON CHEGG
The contents of the strings will be: char string1[ ] = "hello: its nice" , char string2[ ] = "goodmorning: bye", char string3[ ] = "billy: red"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
