作者y1027330 (leon)
看板MATLAB
標題讀txt檔的問題
時間Thu Jan 12 17:45:29 2012
假設我要讀的檔名叫 a.txt
GROUP = L1_METADATA_FILE
GROUP = METADATA_FILE_INFO
ORIGIN = "Image courtesy of the U.S. Geological Survey"
REQUEST_ID = "0101108300214_00010"
LMAX_BAND1 = 191.600
LMIN_BAND1 = -6.200
LMAX_BAND2 = 196.500
LMIN_BAND2 = -6.400
LMAX_BAND3 = 152.900
很雜亂
但我只想要
LMIN_BAND1 = -6.200
LMAX_BAND2 = 196.500
LMIN_BAND2 = -6.400
LMAX_BAND3 = 152.900
請問要怎麼做
我當初看有人說可以fopen + fgetl去抓
但有點無法理解
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.120.39
1F:推 winse:是Landsat 的MLT檔吧?用fopen and fgetl可行 01/13 00:24