Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

After the regexp match, i have to start appending the data in the existing text file. Any help would be great.

1 Ansicht (letzte 30 Tage)
Hi All,
After the regexp match, i have to start appending the data in the existing text file. Any help would be great.
#########***********************************##############
Read = fileread('LKS_ALU_FL U5.uvproj');
strlookup = sprintf('<GroupName>ALC_Support</GroupName>\n<Files>');
matchStr = regexp(Read,strlookup,'match');
  3 Kommentare
Santosh Gnanasekaran
Santosh Gnanasekaran am 22 Dez. 2017
Bearbeitet: Santosh Gnanasekaran am 22 Dez. 2017
Thanks for the quick reponse.
Yes, i can use strfind. But once find it exact string i should start writing\Append the data from very next line .
Walter Roberson
Walter Roberson am 22 Dez. 2017
Okay, so strfind() gives you the position of the start of the string, and length() tells you how long the string is. You can index Read from there to end to get the remainder of the file.

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by