954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to execute the commands on one file and store the result on another file

How can we execute the commands on one file in a such a way that the results will get saved in another file?
Do we have any such built in method which we can use?

swapnamishra
Newbie Poster
8 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Look under shelve in Python help.

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

you can create a class to which opens a file write data and closes a file
just invoke in your script ,use same instance as long as u want results in same file,generate seperate instance for result file #2

pythonguy
Newbie Poster
10 posts since Mar 2006
Reputation Points: 10
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You