简体   繁体   中英

How can i read this formatted text file with c?

enter image description here

i have text file of movies and actors.But last actor names are connected to next movies name as you see and i have no idea how to read this file,can you help me about it?

Note:edit isnt allowed

As I've noticed, the name of the actor is attached to the name of the movie in such away that there is no space before the movie. So you can search for combination of a non-space and non-slash character followed by the upper-case letter. For example search for upper-case letters and when you find one, check if the previous character is a lower-case letter. If that is the case, the movie starts at this point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM