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

  • Автор темы Автор темы gnova
  • Дата начала Дата начала

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.

Apple@yahoo.com
Basketball@yahoo.com
Car@yahoo.com(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

Car@yahoo.com(newly created)
Basketball@yahoo.com
Apple@yahoo.com
 
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
 
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
 
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.
 

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