For April Fools, destroy your friends files! Clone the repo and run!
NOTICE: DO NOT TAMPER WITH THE NUMBERS UNLESS YOU KNOW WHAT YOU ARE DOING, TAMPERING MAY CAUSE A BSOD DEPENDING ON YOUR RAM. You have been warned. Type in NukeDemo.txt and look into the files folder and look at the result! Other versions exist on my account. Original Github Repo
Those “numbers” you didn’t know how to tamper with, I tampered with: https://repl.it/@StudentFires/FileNuker, It’s far more readable now.
The code made literally no sense, after heavily debugging your code I realized that most of it was useless. the for loop should’ve just contained the
file >> file_text, the rest of it happened when the loop ended.
Btw, this ate up a full Gigabyte of my Repl storage, luckily I’m on the Hacker plan.
By targeting non-existent files, it required memory.
I thought I knew how to destroy other people's reps, but I failed. If this worked this'd be pretty cool.
Tampering w/ the numbers, can't these be changed?
if (i % 2030900 == 0) to
if (!(i & 2030899))
rand() % 4 to
rand() & 3