OpenLP is a great program for presenting worship songs in churches. This code should help to transfer a .doc or a .txt file containing many songs into separated .txt files containing each song, which can be easily imported to OpenLP.