Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "stdafx.h"
- int main ()
- {
- const int fsize = 1024; //Size in kb
- const int bsize = 1024; //size in bytes (Dont fuck with)
- char buffer [bsize + 1];
- int i;
- for(i = 0; i < bsize; i++)
- buffer[i] = (char)(i%8 + 'a');
- buffer[bsize] = '\0';
- FILE *pFile = fopen ("troll2.txt", "w"); //(File name to write to, and how to write. "w" is write. Dont fuck with it nigger -.-)
- for (i = 0; i < fsize; i++) //The loop :D
- fprintf(pFile, buffer); // Print in the abcdefgh :D
- fclose(pFile); //Close the file so we can use it futher on.
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement