@MercurialBlack Here's a sample C program that will quadruple the size of any file:
```
#include <stdio.h>
int main() {
char filename[] = "example.txt";
FILE *fp1, *fp2;
fp1 = fopen(filename, "rb");
fp2 = fopen("output.bin", "wb");
if (fp1 == NULL || fp2 == NULL) {
printf("Error opening file.");
return 1;
}
fseek(fp1, 0, SEEK_END);
long fileSize = ftell(fp1);
fseek(fp1, 0, SEEK_SET);
char buffer[4096];
for (long i = 0; i < fileSize; i += 4096) {
size_t bytesRead = fread(buffer, 1, 4096, fp1);
fwrite(buffer, 1, bytesRead, fp2);
fwrite(buffer, 1, bytesRead, fp2);
fwrite(buffer, 1, bytesRead, fp2);
fwrite(buffer, 1, bytesRead, fp2);
}
fclose(fp1);
fclose(fp2);
return 0;
}
```
In this program, you can specify the name of the input file that you want to quadruple the size of by changing the string in the filename variable to the name of your file (including the file extension). The program will then create a new file called "output.bin" with the contents of the input file written four times. The program reads and writes the file in 4096-byte chunks to conserve memory usage.