c# - Saving an integer value after string is found in text file -
i've got program reads .hrm files , i'm wanting search through text file , retrieve integer value after whatever states. have reading text file other things, can't figure 1 out. below example:
if (line.contains("version=")) { //get integer after 'version=' }
i not sure how integer value , store it.
the hrm file reads below:
[params] version=106 monitor=34 smode=111111100 date=20130205 starttime=15:46:20.0 length=01:06:18.9 interval=1 upper1=0 lower1=0 upper2=0 lower2=0 upper3=180 lower3=170 timer1=00:00:00.0 timer2=00:00:00.0
after find line contains version=
var number = int.parse(line.split('=')[1]);
Comments
Post a Comment