Jump to content

FSIF | Find String Inside File


Guest Rock

Recommended Posts

FSIF | Find String Inside File

Scripted by Rock

Ce stie sa faca?

Acest include te ajuta sa gasesti un anumit cuvant in interiorul unui fisier de tip .txt sau .log

Cum pot face asta?

Simplu.

#include < FSIF >

if( IT( "test2", "text.txt" ) != -1 )

{

print( "Exista!" );

}else print( "Nu exista" );

Probabil te intrebi de ce sintaxa este "IT", IT vine de la "Is There"

La ce este folositor?

Nu stiu, gasiti voi o intrebuintare.

Precizez, poate fii folosit cu rLogs.

Parametru optional:

Aceasta functie are si un parametru optional.

if( IT( "test2", "text.txt", true ) != -1 )

Acel true este pentru Ignore Case, adica folosind-ul vei ignora daca cuvantul are litere mari sau mici fata de cel care lai scris tu in functie.

Daca este false nu va mai ignora iar "test2" nu va fii acelasi lucru cu "Test2"

Download:

[download]SolidFiles[/download]

Link to comment
Share on other sites

NexT." post="136112" timestamp="1363857798"]

Nu-mi place.

Stai linistit ca nu l-am facut special pentru tine.

Si cum a zis si eXorcism, daca nu stii sa il folosesti sau nu iti trebuie nu comenta.

Link to comment
Share on other sites

NexT." post="136181" timestamp="1363886818"]

:]] Eram sigur ca vei comenta, ce nu-ti convine ? Asta e parerea mea.

21.gif daca esti moderator nu te scuteste de vreun warn pentru off-topic.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.