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
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 in this language! and later
this is to rewrite the entire file.
(you can either load the entire file, fix it up, and write it out
again, or copy the file to a new file, skipping the first line or
row).
/F
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
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
/F
--
http
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
Juergen Huber wrote:
but...how can i say python, delete the first line?!
thats my problem!
You can open the file, read its lines with readlines function ( that
return a list), so make your modifies and save to another file.
Now, do you know how to work with lists?
Juergen Huber wrote:
start here:
http://docs.python.org/tut/node9.html#SECTION00920
that documentation i have already read, but it wouldn`t help me for my
problem!
that documentation and a little experimentation should be all you need.
i know, how i can read the first
Juergen Huber schrieb:
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
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
JH this helps me!
JH thank you very much!
JH greetings, juergen
I am happy to see my postings (which I sent by accident to you only, not to
the list, see below) helped. But:
Its a pity we can not see your solution (your code) here :(
It helps to others as well to see, how to solve some
10 matches
Mail list logo