i have a file called som.DAT containing some strings like
$APDSV,3,3,11,0 8,26,221,,16,17 ,055,,11,05,174 ,,,,,*42
$ASDAM,,A,30322 ,N,03174,E,6.8, 19.15,,,,A*49
$APDAM,,30143,N ,03804,E,1,6,01 .39,006,M,,,,*1 E
i want to read this file then split the string start with $ASDAM
and put the values 30322 in text1, 03174 in text2, etc
then save evrey value in a file.dat
$APDSV,3,3,11,0 8,26,221,,16,17 ,055,,11,05,174 ,,,,,*42
$ASDAM,,A,30322 ,N,03174,E,6.8, 19.15,,,,A*49
$APDAM,,30143,N ,03804,E,1,6,01 .39,006,M,,,,*1 E
i want to read this file then split the string start with $ASDAM
and put the values 30322 in text1, 03174 in text2, etc
then save evrey value in a file.dat
Comment