Python
Okay Okay Okay
I’m learning Python scripting language. It’s been great so far, very fun to be learning code again. Anyhow, today I got to the “Input and Output” section, where you learn how to deal with files and such. Well, I’m playing around with a file, and I decide I want to write a period between each character in the file, so here’s what I do:
for i in tmp:
tmp.seek(1,1)
tmp.write(‘.’)
You guessed it! The hard drive starts to spin…
and spin…
and spin…
and spin…
and spin…
and spin…
So I busted out the task manager and killed the process. When it was all over, I was left with a 91.348 megabyte text file filled with periods… so cool.
The best part is… The text of this post is copied directly from a Python generated file.