Class FileUtilities
java.lang.Object
io.github.mwttg.wavefront.utilities.FileUtilities
Utility class for reading text files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFromResources(String filename)Reads a text file from the resource folder.
-
Constructor Details
-
FileUtilities
public FileUtilities()
-
-
Method Details
-
readFromResources
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
-