New Garbage Program

What? Have I written a really bad program? Well that's not for me to say. What I intended to write was a little new Windows command line program that creates a file of a specified size that's full of garbage. It's called gbg

This just scratches an itch I had while testing the BDiff/BPatch programs from my website. I wanted to stress test them diffing and patching two large, almost completely different files. I just needed something to create some test files of exactly the right size.

Now there's probably already a program out there that does just that, but that's no fun. So I scribbled one down in my shiny new copy of Delphi 11.3, just for fun.

I've just put out gbg v0.1.0. It's very much the first attempt, so don't expect too much! It's extremely simple to use. You just pass it a file path followed by a file size in bytes. Press enter, and it's done. Well almost: if the file size is quite large, you'll be asked to confirm first.

The largest permitted file size is 21,474,836,480 bytes (i.e. 20GiB). You can enter the thousands delimiter if you wish, but v0.1.0 is not yet clever enough to decipher any memory units like MB or MiB.

You can get gbg via its web page, or more directly, from its GitHub Release page.

Source code is MIT licensed and is on GitHub in the delphidabbler/gbg repository.



Comments

  1. Anonymous7:41 am

    Version 0.2: Add /a switch to generate ASCII text file

    ReplyDelete
    Replies
    1. Good idea. Do you think it matters how long lines should be. Also random text ASCII 32 to 126 or some "real" text like lorem ipsum?

      Delete

Post a Comment

Comments are very welcome, but please don't comment here if:

1) You have a query about, or a bug report for, one of my programs or libraries. Most of my posts contain a link to the relevant repository where there will be an issue tracker you can use.

2) You have a query about any 3rd party programs I feature, please address them to the developer(s) - there will be a link in the post.

3) You're one of the tiny, tiny minority who are aggressive or abusive - in the bin you go and reported you will be!

Thanks

Popular posts from this blog

Deleting elements from a dynamic array

Initialising dynamic arrays

New String Property Editor Planned For RAD Studio 12 Yukon 🤞