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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!