作者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