Hello to everyone!
I am working on a simple application like a search engine.It searches in an index(a txt file with filenames). If a match is found, it displays the complete path where the keyword is contained and opens the path. It's a movie catalog and searches for the movie you want and opens also the dir .
My problem is this: i have made the txt file with the paths which will be used as the index. I use the FileReader for loading the txt.For example.C:\index.txt and contains the following string lines:
The app should search only for the Movie1,2,3,4 and ignore the rest of the string.
I know that i should probably do it with string split but none of the examples i found is right. I think that there's a solution with +\W character but i am not sure.
Does anyone know how to achive this silly string seperation?
Really thank you for your time :)