Write a program to read a text file line by line and display each word separate by '#'
Answers
Answered by
1
Answer:
Approach:
Open a file in read mode which contains a string.
Use for loop to read each line from the text file.
Again use for loop to read each word from the line splitted by ' '.
Display each word from each line in the text file.
Explanation:
hope this helps please follow
Similar questions