Where can I get a big text file ?

notfred

Lifer
Feb 12, 2001
38,241
4
0
open TEXT, ">bigfile.txt";

$size = 5; # Size in megabytes.
$size *= (1024 * 1024);

for ($ii = 0; $ii < $size; $ii++) {
$char = int ( rand (127) );
if ( $char < 10 || $char == 11 || $char == 12 || ( $char >13 &amp;&amp; $char < 32 ) ){
$ii--;
}
else {
$char = chr( $char );
print TEXT $char;
}
}
close TEXT;
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
make a text file and type one character into it

then in command prompt type "type file.txt >> file.txt", repeat and it'll grow exponentially
 

Chu

Banned
Jan 2, 2001
2,911
0
0
Originally posted by: amdfanboy
?

TIA

My standard "big text file" is the King James Bible. It's about 4.7 megs uncompressed. Do a google search - pretty easy to find.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Originally posted by: amdfanboy
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB

5 MB isn't big enough?
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: silverpig
Originally posted by: amdfanboy
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB

5 MB isn't big enough?

No, I am looking for things to compress.
 

MichaelD

Lifer
Jan 16, 2001
31,528
3
76
Originally posted by: notfred
open TEXT, ">bigfile.txt";

$size = 5; # Size in megabytes.
$size *= (1024 * 1024);

for ($ii = 0; $ii < $size; $ii++) {
$char = int ( rand (127) );
if ( $char < 10 || $char == 11 || $char == 12 || ( $char >13 &amp;&amp; $char < 32 ) ){
$ii--;
}
else {
$char = chr( $char );
print TEXT $char;
}
}
close TEXT;

I ran this in a DOS window and an alien spaceship landed outside my window. They knocked on my window and tried to order a Big Mac. This is a bad ass little program!!!
 

Chu

Banned
Jan 2, 2001
2,911
0
0
Originally posted by: amdfanboy
Originally posted by: silverpig
Originally posted by: amdfanboy
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB

5 MB isn't big enough?

No, I am looking for things to compress.

. . . ok, some question here (I study information theory btw). What exactly are you trying to do? Most of the methods here will either have very very low or very very high enthropy which will throw your results waaaaay off if your trying to do anything statistical . . . yet your specifically asking for text. Why?

-Chu
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: Chu
Originally posted by: amdfanboy
Originally posted by: silverpig
Originally posted by: amdfanboy
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB

5 MB isn't big enough?

No, I am looking for things to compress.

. . . ok, some question here (I study information theory btw). What exactly are you trying to do? Most of the methods here will either have very very low or very very high enthropy which will throw your results waaaaay off if your trying to do anything statistical . . . yet your specifically asking for text. Why?

-Chu

Trying to find the sweet spot with a buffer when GZIP-ing a file.
 

Chu

Banned
Jan 2, 2001
2,911
0
0
Originally posted by: amdfanboy
Originally posted by: Chu
Originally posted by: amdfanboy
Originally posted by: silverpig
Originally posted by: amdfanboy
Originally posted by: silverpig
Open a new text file, type some random characters. Doesn't have to be much.

ctrl a
ctrl c
arrow
ctrl v

ctrl a
ctrl c
arrow
ctrl v

do this 20 times and you're done.

Just did this myself. Took me all of 20 seconds to make a 5 MB file.

Windows clipboard crashes at ~ 10MB

5 MB isn't big enough?

No, I am looking for things to compress.

. . . ok, some question here (I study information theory btw). What exactly are you trying to do? Most of the methods here will either have very very low or very very high enthropy which will throw your results waaaaay off if your trying to do anything statistical . . . yet your specifically asking for text. Why?

-Chu

Trying to find the sweet spot with a buffer when GZIP-ing a file.

So by text file do we mean english language?