hello,
Your best bet might be to read the whole file, and then use a regex on it.

  ----- Original Message ----- 
  From: Gus Vincent Dato 
  To: [email protected] 
  Sent: Tuesday, February 10, 2009 8:13 AM
  Subject: [c-prog] parsing a file


  hi guys,

  how do i parse a file, searching for a certain string like... example of the 
contents of the file would be...

  [ENGINE]
  Name=SIC
  Version=12.102.1009

  and i wanted to search for 'Version' and retrieve what it points which is 
'12.102.1009'.

  and also replace the the contents of the version to something linke 
'13.0.0'... should be something like this...

  [ENGINE]
  Name=SIC
  Version=13.0.0

  really appreciate you help.

  thanks.

  Get your preferred Email name!
  Now you can @ymail.com and @rocketmail.com. 
  http://mail.promotions.yahoo.com/newdomains/aa/


  

[Non-text portions of this message have been removed]

Reply via email to