PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Psy-[A] on 06 February, 2004, 19:07:51

Title: Help With a script PLZ!!!
Post by: Psy-[A] on 06 February, 2004, 19:07:51
Well first of all i'm new here so
What'zzzzzz  PPL

i did a script that write in to txt file and i don't know what is the command that can del a line in the txt
well i want it to del the first line in the txt not the last one

if someone will tell me what is the command i will be greatfull

well that is what i need i hope u can all help me and 10x anyway
 ;)


for example

the txt going like this

------------------------------------
hey ppl what's up
blablabl;a
bla bla bla bla
bababababa
babababba
-------------------------------------
and after the command it will go like this
------------------------------------
blablabl;a
bla bla bla bla
bababababa
babababba
-------------------------------------

sorry for the english and thanks again
Title:
Post by: Psy-[A] on 07 February, 2004, 14:45:44
anybady here?
 ?(   ?(   ?(   ?(
Title:
Post by: NightLitch on 07 February, 2004, 16:16:10
you will be needing to add the lines into a table and then delete first param(index) in table.
Title:
Post by: Psy-[A] on 08 February, 2004, 20:33:29
can u write me the lines that i need to write in to the script and then i will do it my own?

the basic thing that i need is the lins that will put the txt in to the index that u told me
10x mate
Title:
Post by: plop on 10 February, 2004, 13:29:43
QuoteOriginally posted by Psy-[A]
can u write me the lines that i need to write in to the script and then i will do it my own?

the basic thing that i need is the lins that will put the txt in to the index that u told me
10x mate
take a look @ freshstuff 3.x for some hints.
specialy 3.3 makes it really easy 2 delete things.

plop
Title:
Post by: Psy-[A] on 13 February, 2004, 03:13:38
10x alot
this script was helpfull for me
but there is one thing that i didn't get

if i write a line and it's going like this

| date        | rate   | size     | name
|                |           |            |
| 12.02.04 |   6.5   |  15MB  |  bla1.zip
| 12.02.04 |   6.5   |  15MB  |  bla2.zip
| 12.02.04 |   6.5   |  15MB  |  bla3.zip
| 12.02.04 |   6.5   |  15MB  |  bla4.zip

and then i'm tellin the bot to delete this line

+delalbum | 12.02.04 |   6.5   |  15MB  |  bla3.zip

then it will delete all the file
WHY?
what can i do that will search in the line and not by the first leter?