edu.uchsc.ccp.util.io
Class FileReadingUtil
java.lang.Object
edu.uchsc.ccp.util.io.FileReadingUtil
public class FileReadingUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileReadingUtil
public FileReadingUtil()
readFileLines
public static String[] readFileLines(String infile)
throws IOException
- Reads in a text file and returns it as an array of Strings. Risky from a
scale point of view.
- Throws:
IOException
readFileLines
public static String[] readFileLines(String infile,
String comment)
throws IOException
- Throws:
IOException
readFileLines
public static String[] readFileLines(InputStream inputStream)
throws IOException
- Throws:
IOException
readFileLines
public static String[] readFileLines(InputStream inputStream,
String comment)
throws IOException
- Throws:
IOException
toString
public static String toString(String infile)
throws IOException
- Throws:
IOException
toString
public static String toString(InputStream inputStream)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)