Anyone one have a 30+mb text file?

juiio

Golden Member
Feb 28, 2000
1,433
4
81
It would probably be faster to just create one yourself. Createa file, enter random text, copy and paste a bunch of times, select all and copy again, paste a bunch more times, select all again, etc, repeat... It shouldn't take more than a few minutes.
 

ArmchairAthlete

Diamond Member
Dec 3, 2002
3,763
0
0
I had one that was about 500MB. Accidentally coding an infinite loop when writing text to a file = bad. The file is long gone though.

EDIT: It finally stopped when I got an Out of Memory error in Netbeans.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: ArmchairAthlete
I had one that was about 500MB. Accidentally coding an infinite loop when writing text to a file = bad. The file is long gone though.

EDIT: It finally stopped when I got an Out of Memory error in Netbeans.



Hahahahahahaha

You got me to smile.

:beer: < -- 4U :)
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,000
126
Createa file, enter random text, copy and paste a bunch of times, select all and copy again, paste a bunch more times, select all again, etc, repeat... It shouldn't take more than a few minutes.
More like a few years; a 30 MB text file has roughly 30000000 characters.
 

Yomicron

Golden Member
Mar 5, 2002
1,735
1
81
Originally posted by: BFG10K
Createa file, enter random text, copy and paste a bunch of times, select all and copy again, paste a bunch more times, select all again, etc, repeat... It shouldn't take more than a few minutes.
More like a few years; a 30 MB text file has roughly 30000000 characters.

:confused: using that method, I made a 46.1MB text file in < 1 minute.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: BFG10K
using that method, I made a 46.1MB text file in < 1 minute.
Plain text?

Enter 100 characters: 5 seconds.
Ctrl+A = .5 seconds.
Ctrl+C = .5 seconds.
Ctrl+V = .5 seconds.
Ctrl+V 9 more times = 2 seconds.
Total characters at this point: 1,000
Ctrl+A = .5 seconds.
Ctrl+C = .5 seconds.
Ctrl+V = .5 seconds.
Ctrl+V 9 more times = 2 seconds.
Total characters at this point: 10,000

Basically: the size of the file increases by 10x in about 4 seconds.

So, after 8 seconds, you're at 10k. 12 seconds: 100k. 16 seconds: 1mb. 20 seconds: 10 mb. You'll hit 30 mb before the 24 second mark.

Then you can add 5 seconds for the original 100 character entry. Total time: 29 seconds.
 

Nebor

Lifer
Jun 24, 2003
29,582
12
76
Originally posted by: notfred
Originally posted by: BFG10K
using that method, I made a 46.1MB text file in < 1 minute.
Plain text?

Enter 100 characters: 5 seconds.
Ctrl+A = .5 seconds.
Ctrl+C = .5 seconds.
Ctrl+V = .5 seconds.
Ctrl+V 9 more times = 2 seconds.
Total characters at this point: 1,000
Ctrl+A = .5 seconds.
Ctrl+C = .5 seconds.
Ctrl+V = .5 seconds.
Ctrl+V 9 more times = 2 seconds.
Total characters at this point: 10,000

Basically: the size of the file increases by 10x in about 4 seconds.

So, after 8 seconds, you're at 10k. 12 seconds: 100k. 16 seconds: 1mb. 20 seconds: 10 mb. You'll hit 30 mb before the 24 second mark.

Then you can add 5 seconds for the original 100 character entry. Total time: 29 seconds.

I smoke crack. Lots and lots of it. That's why I had to edit and delete this reply, lest all of you see the horrible truth. It was some crazy shit[/b], I tell you what.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
lol...it would take longer to download it than you to create it. it just took me like 45 seconds to create a 81 meg txt file...
 

Schadenfroh

Elite Member
Mar 8, 2003
38,416
4
0
Originally posted by: tfinch2
lol...it would take longer to download it than you to create it. it just took me like 45 seconds to create a 81 meg txt file...

i need it to be random and not repeating in ANY pattern or repeating at ANY point, if it repeats itself at anypoint, it will screw up what im planing to do with it.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: Schadenfroh
Originally posted by: tfinch2
lol...it would take longer to download it than you to create it. it just took me like 45 seconds to create a 81 meg txt file...

i need it to be random and not repeating in ANY pattern or repeating at ANY point, if it repeats itself at anypoint, it will screw up what im planing to do with it.

Even in unicode there are not 30,000,000 unique characters, so parts of it WILL repeat.
 

trmnlprep

Member
Sep 16, 2004
69
0
0
i can't contribute anything meaningful to this thread but i'm just wondering why you need this file?
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Just for kicks, here's an example of C++ completely spanking Python.

The python version took about 19 minutes on my system. The C++ version took about 20 seconds!

I like python, but it does have some performance issues. BTW, I did try buffering the data into a 1000 character strings in the python version, rather the writing every character individually. I didn't let it finish, but it didn't have any dramatic impact.

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: Armitage
Just for kicks, here's an example of C++ completely spanking Python.

The python version took about 19 minutes on my system. The C++ version took about 20 seconds!

I like python, but it does have some performance issues. BTW, I did try buffering the data into a 1000 character strings in the python version, rather the writing every character individually. I didn't let it finish, but it didn't have any dramatic impact.

What machine is that running on?

Here's Perl. It ran in 39 seconds on a P4 1.6Ghz.
Comparable speed to your C++ program (I'd like to hear your processor speed), and more importantly: 5 lines of code. Really only 3 lines if you don't count the shebang and closing bracket.
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Originally posted by: notfred
Originally posted by: Armitage
Just for kicks, here's an example of C++ completely spanking Python.

The python version took about 19 minutes on my system. The C++ version took about 20 seconds!

I like python, but it does have some performance issues. BTW, I did try buffering the data into a 1000 character strings in the python version, rather the writing every character individually. I didn't let it finish, but it didn't have any dramatic impact.

What machine is that running on?

Here's Perl. It ran in 39 seconds on a P4 1.6Ghz.
Comparable speed to your C++ program (I'd like to hear your processor speed), and more importantly: 5 lines of code. Really only 3 lines if you don't count the shebang and closing bracket.

1GHz PIII, 512MB RAM, lots of other stuff going on.