[Tutor] Saving data

alan.gauld@bt.com alan.gauld@bt.com
Tue, 19 Oct 1999 09:58:34 +0100


See my online tutorial at:

http://members.xoom.com/alan_gauld/tutor/tutindex.htm

Look in the chapter on 'Handling Files', specifically 
the example of creating a COPY command.

Alan G.

> -----Original Message-----
> From: Alexandre Passos [mailto:atp@bahianet.com.br]
> Sent: Monday, October 18, 1999 11:50 PM
> To: TUtor
> Subject: [Tutor] Saving data
> 
> 
> How can I save some data achieved in some program into other file?
> ex:
> 
> nm = raw_input("Name:")
> age = input("Age:")
> hob = raw_input("Favourite hobby:")
> persnon = """Name:%s
> Age:%d
> Favourite Hobby: %s"""
> 
> 
> 
> ...
> how can I save some object on a separate file for future reference?
> 
>