The purpose of the function is that it should be able to read text from a text file and later save it to an array list. The program somehow manages to load strange character