I am trying to output information to the end of a file with | as a delimiter. However when I run it, nothing is added to that text document. Could it just be that using pathName is not actually opening the file? Or am I missing something simple?
Well I think I figured out the issue. For the outputFile, it needs to have double \\ (i.e. C:\\songs.txt) while the pathName at the beginning only has one \ (i.e. C:\songs.txt). So I guess the next question is, is there an easy way to add that extra \ into pathName somehow or should the user have to re-input the path with those added manually?