필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
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