Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asc II file

Status
Not open for further replies.

Prusso

Programmer
Jul 5, 2002
13
AR
How can I seek and repleace a text in a ascii file
 
HI


cSearched = FILETOSTR(cFileName)

STRTRAN(cSearched,cExpressionSought,cReplacement)

Hope this helps you :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Ramani
You've been away too long, you forgot the last step, to write the changes out! < g >

cNewStr=STRTRAN(cSearched,cExpressionSought,cReplacement)
= STRTOFILE(cNewStr, cFileName)

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top