I have not written any code or anything yet, because I have no idea where to even begin. But here is the basic idea. Suppose this is the content of the text file:
#hello
Hello there
#hi
Hiya
How should I write a Python code so that the program reads through the file and stops the cursor when it reaches the position immediately after #hello ? (P.S: I know how to open and close text files, and have written data into files and read files through Python as well. I'm new to this site, so do let me know if the question can be improved in any way.