Quantcast
Channel: MATLAB Central Newsreader - tag:"find"
Viewing all articles
Browse latest Browse all 55

Re: find and replace string in a text file

$
0
0
Hi,
Am new here.
I tried the above comments.
****************************
Input file was:
Hello
9912 1345l; 890 12
#Now go on
What?
Ok...

*******************************
Afetr replaceing ''Hello'' with " Hi"...
The Output is:
******************************
Hi 9912 1345l; 890 12 #Now go on What? Ok....
**********************************
why the formatting changes? I want the texts in new lines as in Input file...
Hi
9912 1345l;890 12
#Now go on
What?
Ok...

*** Any solution....
Thanks in advance
PMG

Viewing all articles
Browse latest Browse all 55

Trending Articles