From: Khanh on 8 Aug 2010 21:09 For example, I have a txt file name mydata.txt as following: dummy line 1 dummy line 2 dummy line 3 A =1 B=2 C=3 D=4 E=5 dummy line 4 dummy line 5 How can I read the value of C only?
From: ImageAnalyst on 8 Aug 2010 21:15 I'd probably try fscanf(). Or alternatively fgetl() and sscanf().
From: Walter Roberson on 9 Aug 2010 10:37 Khanh wrote: > For example, I have a txt file name mydata.txt as following: > dummy line 1 > dummy line 2 > dummy line 3 > A =1 B=2 C=3 > D=4 E=5 > dummy line 4 > dummy line 5 > > How can I read the value of C only? textscan(). HeaderLines 3. Format '%*[^C]C=%d' . Count 1.
|
Pages: 1 Prev: excel actixserver graph plot problem Next: Dealing with a blank datenum result? |