Read a particular column value of string from a File and apply some formula to it

  • Thread starter Thread starter shivasworld
  • Start date Start date
S

shivasworld

Guest
Hello All,

I want to read some string from a file (.abc extension file say) and store the particular column value and apply formula y = mx+c to it to find the new value of x.

So, lets say I have a string as follows in some (text.abc) file :-

"12345A, 19:00 a1: 123, a2: 345, a3: 432"

I want to read the value of a1 from the file containing the above string and want to apply the formula y= mx + c where y = 123 in above case, c = any value(offset) and m (any value say 1,2,...etc) and store the value of " x" in a file.

How to proceed further in this case . Please do let me know any code snippet will be useful to me.

Thanks in advance.

Continue reading...
 
Back
Top