1 package io.github.robertograham.rleparser.helper;
 2 
 3 import java.io.IOException;
 4 import java.net.URI;
 5 import java.nio.file.Files;
 6 import java.nio.file.Paths;
 7 import java.util.ArrayList;
 8 import java.util.List;
 9 
10 public class FileHelper {
11 
12     public static List<String> getFileAsStringList(URI uri) {
13         try {
14             return Files.readAllLines(Paths.get(uri));
15         } catch (IOException e) {
16             return new ArrayList<>();
17         }
18     }
19 }