
February 20th, 2004, 11:36 AM
|
 |
Contributing User
|
|
Join Date: Jan 2004
Posts: 103
Time spent in forums: 3 Days 1 h 17 m 20 sec
Reputation Power: 10
|
|
|
file.seek in append mode
greets
i have some text that i update.the data consists of a few strings,printed to the file as one line.now when i write the file for the first time,i can use file.seek() to controll where on the line a string goes.but when i try to do it in append mode,it just writes the strings right next to each other on the line.i am trying to make the file a little easier on the eye when its viewed(the strings aligned vertically).i want something like
Code:
string1 string2222222 string3
string1 string22222 string3
string1 string2222222222 string3
but this is what im getting
Code:
string1 string2 string3
string1string2string3
string1string2string3
i tried some thing like
p=file.tell()
p=(p+20)
file.seek(p)
file.write
but it doesnt work.can anyone show me a example of something similar to what i want to do?
__________________
It is not important if the glass is half full or half empty.What is important,is who has been drinking from MY glass?!?!?
|