public class IO extends Object
| Constructor and Description |
|---|
IO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
collectLines(ArrayList<String> lines,
BufferedReader reader) |
static String[] |
linesFromFile(String fname) |
static String |
readFile(File file) |
static void |
writeFile(File file,
String contents) |
public static void writeFile(File file, String contents) throws IOException
IOExceptionpublic static String readFile(File file) throws IOException
IOExceptionpublic static void collectLines(ArrayList<String> lines, BufferedReader reader) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.