File_FindText_First

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > FILE: functions working on files >

File_FindText_First

 

Description

 

Function to search text inside a file content.

 

Syntax

 

n = File_FindText_First(sFileName, sTextToSearch [, lCaseSensitive])

 

Returns

 

Number.

Positive number: byte position where text was found

Zero: text not found

Negative number: technical error

 

Parameters

 

Name

Type

Optional

Meaning

sFileName

String

No

Full File Name of the file to search into.

sTextToSearch

String

No

Text to search

lCaseSensitive

Number

Yes

By deafult search is NOT case sensitive.
Indicate %TRUE to performa a case sensitive search of sTextToSearch inside sFileName

 

Remarks

 

Restrictions

 

See also

 

File Module,

 

Examples