Append line(s) to file--How do you insert text to the top of the file and not bottom?

gnova

Client
Регистрация
07.03.2012
Сообщения
13
Благодарностей
0
Баллы
0
I been trying to mess with appending lines to the file.


For example, I make a lot of email accounts and export it to a file lets call it 'universal emails'

when I open the file and check the created emails. It always inserts the newly created email at the bottom of the text.
Eg.

[email protected]
[email protected]
[email protected](newly created)

.I tried putting -false- instead of -true- at append to file but it doest work,what can I do so that the newly created email is always inserted to the top of the text and not bottom? What do I do to append lines to the file?
I want it like this

[email protected](newly created)
[email protected]
[email protected]
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Another way:

- use macro "count number of lines in file" in files macros directory (don't know it's title in English version) -> instance will know the number of the last line
- take line from email file and use result of 1st macros as a number of a line
 

gnova

Client
Регистрация
07.03.2012
Сообщения
13
Благодарностей
0
Баллы
0
Hey dude. I tried messing with it some more but I cant seem to get the appended line to the top of the file instead of inserting it at the bottom
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
macros will always append line at the bottom of the file

i just showed you how you can get the last (the newest email) from this file in your other templates.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)