Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getLyrics(int num) throws IOException {
- String lyrics = "";
- Scanner input = new Scanner(new File("/Users/philip/AndroidStudioProjects/LSMHymns2/app/src/main/res/raw/hymn" + num + ".txt"));
- while (input.hasNextLine()) {
- String line = input.nextLine();
- lyrics += line;
- }
- return lyrics;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement