Re: [Tutor] Creating Binary Files of 1MB

2011-04-17 Thread Becky Mcquilling
Thanks, Steve. For the first step, I just wasn't sure how to write the file. I appreciate the help. Becky On Sun, Apr 17, 2011 at 12:34 AM, Steven D'Aprano wrote: > Becky Mcquilling wrote: > >> I'm trying to work out a method to create a binary file of 1mb and I'm >> somewhat confused by the d

Re: [Tutor] Creating Binary Files of 1MB

2011-04-17 Thread Steven D'Aprano
Becky Mcquilling wrote: I'm trying to work out a method to create a binary file of 1mb and I'm somewhat confused by the docs I'm reading is there a method that will do this? # Open a file in binary (b) mode for writing. fp = open("mybinaryfile", "wb") # Write whatever data you like to it. fp.w

[Tutor] Creating Binary Files of 1MB

2011-04-16 Thread Becky Mcquilling
I'm trying to work out a method to create a binary file of 1mb and I'm somewhat confused by the docs I'm reading is there a method that will do this? Becky ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail