public class FileSplitter extends Object
Constructor and Description |
---|
FileSplitter() |
Modifier and Type | Method and Description |
---|---|
void |
getData(String filename,
int lines)
Split the file, according to the desired number of lines.
|
static void |
main(String[] args)
Reads the parameters [number of lines] [filePathToSplit] and run the splitting
|
public void getData(String filename, int lines) throws IOException
filename
- the fullpath of the file to be splittedlines
- number of lines for splittingIOException
- IOExceptionpublic static void main(String[] args)
args
- number of lines AND path of file to splitCopyright © 2016. All rights reserved.