i'm given an open file, and basically they give you a character(a str) and whenever the occurence of that string appears as the starting word of the line, we are to return that line.
as an example:
the file =
fds dfds kjkj kjkdsf
abc def hij
klm nop qrs
tuv wx yz
and the character given is "klm"
i am to return the line "klm nop qrs"
how would i be able to write this??!!