tksh164 / filegen

FileGen is the file generation tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileGen

FileGen is a file generation tool.

Usage

Usage: filegen.exe <FilePath> <FileSize> <FillMode>
 
  FilePath ..... The file path to the generate file.
  FileSize ..... The file size in bytes for the generate file.
  FillMode
      Zero   ... The generated file is filled with zero.
      Random ... The generated file is filled with random value. This file has very low compression ratio.

Example

> ./filegen.exe 1gb.dat 1073741824 random

  File path     : 1gb.dat
  File size     : 1073741824 bytes
  Padding mode  : Random
  Block size    : 16777216 bytes
  Blocks        : 64
  Remainder size: 0 bytes

  Elapsed: 719 ms
  Done.

Build from source

You need Visual Studio for building the code.

Open the Developer PowerShell for VS 2019 or Developer Command Prompt for VS 2019 from the Start menu. Then run the following command in the FileGen's directory. The filegen.exe is the executable file of FileGen.

nmake build

License

Copyright (c) 2017-present Takeshi Katano. All rights reserved. This software is released under the MIT License.

Disclaimer: The codes stored herein are my own personal codes and do not related my employer's any way.

About

FileGen is the file generation tool.

License:MIT License


Languages

Language:C++ 89.6%Language:C 7.1%Language:Makefile 3.3%