how to identify strings on a text file
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I want to open a text file, and identify a string. The text file can have multiple lines. For instance I want to find the term "AX" wherever it is on the text file and then do something according to the next chars (AX=1 does something different from AX=2). Any help appreciated,
regards, Hugo
0 件のコメント
採用された回答
その他の回答 (1 件)
Hugo
2013 年 3 月 14 日
1 件のコメント
Cedric
2013 年 3 月 14 日
編集済み: Cedric
2013 年 3 月 14 日
But do you have a content that looks like this:
ID=1, AX=28.3, BX=17, STRID="Oregon"
ID=2, AX=24.7, BX=9, STRID="Michigan"
which has a regular structure, or is it more like that:
var n = doc.createElement("input"); n.type = "hidden"; n.name = "c[AX=28.1]"; newElem.value = "contest"; doc.forms['search', AX=25.7].appendChild(n2); select = 8;
which has no regular structure?
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!