|Do you know where your variables are?|
Re: Copy data from one file and add it to anotherby wade (Pilgrim)
|on Apr 25, 2008 at 22:11 UTC||Need Help??|
Hmmm. That looks like homework. You really should state that going in but you deserve kudos for giving it a shot before asking. Given that this is homework, though, I'm only going to give you hints.
First, you should always:
Next, you probably want to use the 3-argument version of open:
You should probably lookup 'open' -- I see a problem with more than one of your files. (hint: one of the translations I did, above, does what your original code did but clearly doesn't do what you intend).
I don't think you want to nest your loops.
You'll need to figure out how to cycle through 'raw_data'
Edit: I made one hint a little clearer.