フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Santosh Gnanasekaran
Santosh Gnanasekaran 2017 年 12 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Santosh Gnanasekaran
Santosh Gnanasekaran 2017 年 12 月 22 日
編集済み: Santosh Gnanasekaran 2017 年 12 月 22 日
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 2017 年 12 月 22 日
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.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by