Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go to line in a txt
Message
From
20/06/2003 09:02:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00802141
Message ID:
00802158
Views:
20
>Nice
>
> Suppose I don't know the line number
> Is it possible to retrive the number of the line
> is the expression is ?
>
>
> Supose I want to replace "carlos" with "jonh"
> but I don't know that Carlos is in line #4
> as below
>
> eretrrtrtrtrtrt
> 34354545454454ddd
> 343434343
> carlos
> xxxxx
> ererer
>
>

StrToFile(StrTran(;
FileToStr('myFile.txt'),'carlos','john',1,1,1),'myFile.txt')

PS: Also you can use _mline,memlines(), atline(), atcline() etc function on a string.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform