How to use file_num = open ( "file", "mode" )
I'm fairly new to programming, and would appreciate someone's advice on how
to write code to achieve this:
1 ask the user to:
a) nominate the drive on which to create a file - eg "C"
b) name the file to be created - eg "entries.dat"
2 create and open that file - "c:\entries.dat" - for output
I'm able to use....
file_num = open ( "c:\\entries.dat", "w" )
.... but only if I specify the details myself!
Thank you
Alex Caracatsanis
|
Not Categorized, Please Help
|
|