public class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String from,
java.lang.String to) |
void |
copy(java.io.LineNumberReader icf,
int nrOfLines,
java.lang.String destFile,
boolean append) |
void |
copy(java.lang.String from,
java.lang.String to)
Copy a file
|
static int |
truncate(java.lang.String fileName,
int nrOfLines) |
public void copy(java.lang.String from, java.lang.String to) throws java.io.IOException
from
- Name of source fileto
- Name of target filejava.io.IOException
- If the file cannot be written an IOException is thrownpublic void append(java.lang.String from, java.lang.String to) throws java.io.IOException
java.io.IOException
public static int truncate(java.lang.String fileName, int nrOfLines)
public void copy(java.io.LineNumberReader icf, int nrOfLines, java.lang.String destFile, boolean append) throws java.io.IOException
java.io.IOException