Jump to content

Recommended Posts

Posted

hi,

I want to search a word in a file and then I want to get the line from the seached word.

Example:

I search the word "hello" in the file "test.txt" and then I get the line from the search word.

can someone help me, pls. THX

Posted (edited)

can you please help me, I dont know to make these

Look:

___________________________test.txt

cat

dog

mouse <====This is the file test.txt

horse

tiger

________________________________

....

.....

select

case $button

$getline = read the file test.txt and get the line which the word horse is writing

guictrlsetdata($input,$getline)

endselect

.....

....

can you give me please a simple example

Edited by TheBobynator
Posted

@TheBobyNator

Without the helpfile I would writte _FileReadToArray("yourfile.ext","mouse") ... no ?

Cheers, FireFox.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...