This function reads in a file and splits it into smaller segments either by byte size or by line count dependent on user input. When finished, it deletes the original file.
1 | rcpp_split(fpath, odir, splitter, count)
|
fpath |
A string specifying the path to the input file. |
odir |
A string specifying the path to the output. |
splitter |
Either l or c, 'l' for lines, 'c' for kilobytes. |
count |
Number of lines or kilobytes to split the file on based on splitter. Returns number of output files. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.