public final class FileSystemUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeFile(File file,
boolean toBeDeleted)
Closes the file handle for temporary file.
|
static String |
readAppendFile(String toAppend,
String spaces)
Reads file and convert it to string.
|
public static String readAppendFile(String toAppend, String spaces) throws IOException
toAppend - file to be convertedspaces - spaces to be appendedIOException - when fails to convert to stringpublic static void closeFile(File file, boolean toBeDeleted) throws IOException
file - file to be closedtoBeDeleted - flag to indicate if file needs to be deletedIOException - when failed to close the file handleCopyright © 2016. All rights reserved.