Class FileUtilities

java.lang.Object
io.github.mwttg.wavefront.utilities.FileUtilities

public class FileUtilities extends Object
Utility class for reading text files.
  • Constructor Details

    • FileUtilities

      public FileUtilities()
  • Method Details

    • readFromResources

      public static List<String> readFromResources(String filename) throws IOException
      Reads a text file from the resource folder.
      Parameters:
      filename - path to the resource file
      Returns:
      the lines of the file (the content)
      Throws:
      IOException - if read fails for any reason