public class IO
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EOLN
The end-of-line character/sequence for this OS.
|
| Constructor and Description |
|---|
IO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
printLines(java.lang.String fileName,
java.util.List<java.lang.String> lines)
Prints the lines (with println).
|
static java.util.List<java.lang.String> |
readLines(java.lang.String fileName)
Returns a list of Strings read from the given file.
|
static java.util.List<java.lang.String> |
readLines(java.lang.String fileName,
java.util.EnumSet<ReadOptionType> options)
Returns a list of Strings read from the given file.
|
public static final java.lang.String EOLN
public static java.util.List<java.lang.String> readLines(java.lang.String fileName,
java.util.EnumSet<ReadOptionType> options)
fileName - the file to read.options - denotes special options when reading.ReadOptionTypepublic static java.util.List<java.lang.String> readLines(java.lang.String fileName)
fileName - the file to readReadOptionTypepublic static void printLines(java.lang.String fileName,
java.util.List<java.lang.String> lines)
fileName - the file to readlines - the lines to print