splitx 1.0.0

splitting a text file into pieces with the size of each piece below a specified maximum number of bytes on disk
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 324.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • g2wang/splitx
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • g2wang

splitx

Crates.io Documentation MIT licensed

splitx is a tiny rust library for splitting a text file into pieces with the size of each piece below a specified maximum number of bytes on disk.

Usage

To use splitx, add this to your Cargo.toml:

[dependencies]
splitx = "1.0"

The library's split function has the following arguments:

file_path: the path of the file to be split,
max_file_size_bytes: the maximum size of each piece of the file in bytes after splitting,
num_header_lines: how many lines are the file's header. If no header lines, use 0. Header lines will be kept in each of the pieces.
output_dir: where to write the pieces of the file.