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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check the specific word available in a text file

Status
Not open for further replies.

crazypro

Technical User
Jul 5, 2006
6
FR
Hi

i need to check the text file line by line for a specific word which starts with a specific word(eg: Function sample (in action, inout action1)) line starts with word "Function" and i wanna delete the "in" and copy that line in a new text file without "in" (eg: Function sample (action, action1))and also i wanna check for paranthesis ({,})and skip those paranthesis in the new test file while copying.



can anyone help me to do this.

thanks in advance
 
And what have you tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
i tried to read a text file line by line and write that line in a new text file but i dont know how to take a particular word from the line and skip ({}) while writing in new text file
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top