FileGen is a file generation tool.
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.
> ./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.
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
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.