std in and stdout

2006-07-10 Thread Juergen Huber
hello, i have a question! how would i fix the following problem: now i have an input file with a fix name and an output file! i have this two files hardcoded written in the sourcecode of this function! in the future i will start this script with the command line. the syntax should be look like

delete first line in a file

2006-06-30 Thread Juergen Huber
hello, i am a dummy user in python and new in this programming language and so there will be questions, that´s for you no problem! i never have before programmed in any language! sorry for this! i hope you will help me, that i also could the basics in this language! and later many more, so i hope

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
Fredrik Lundh wrote: Juergen Huber wrote: i am a dummy user in python and new in this programming language and so there will be questions, that´s for you no problem! i never have before programmed in any language! sorry for this! i hope you will help me, that i also could the basics

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
Fredrik Lundh wrote: Juergen Huber wrote: ok...i thought as much, that i have to copy this file! how will i do that?! how will i fix this file = delete the first line?! with which commands could i do that?! start here: http://docs.python.org/tut/node9.html#SECTION00920

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
this helps me! thank you very much! greetings, juergen JH Fredrik Lundh wrote: Juergen Huber wrote: ok...i thought as much, that i have to copy this file! how will i do that?! how will i fix this file = delete the first line?! with which commands could i do

print shell output in a file

2006-06-30 Thread Juergen Huber
hello, one more question i will have! now i have written a little programm, which delivers me an output on the shell! here is the print command, which delivers me the following output (see below) on the shell: print '%-30s | %-12d | %-12d |%-12d ' % (typename,

Re: print shell output in a file

2006-06-30 Thread Juergen Huber
hello, if i would type in your code, i became the following output in the output.txt - file BOOL | 4 | 50463|201852 but why?! he wouldn´t do that for all the entrys in the csv file! but only for the first one in the file! Stephan Wassipaul wrote: f = file('output.txt','w')