system programign

2006-07-29 Thread oqestra
may i use python to read a file and output its content to another file which is not created yet and i don't want to use ">" to do this in linux? how do you do ? oqestra. -- http://mail.python.org/mailman/listinfo/python-list

Re: system programign

2006-07-29 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, oqestra wrote: > may i use python to read a file and output its content to another file > which is not created yet and i don't want to use ">" to do this in > linux? Read the documentation about `open()`. Simple example: in_file = open('old.txt', 'r') out_file = open('ne