Reading & Parsing an .ini input file using BOOST... ..!!

All,
Need small help. I have an "input.ini" input file which contains sample
values like –
---
App=| 5000 | 5001 | 0 | | | | 1BYTE |
---
Starting with word (viz. App), followed by equal sign, than data within
pipes (|) and blank space between two pipes ( | | ). Anything only between
two pipes is to be read.
I am looking to parse this input file. After parsing, assign each data to
struct member type and than send this complete struct as socket.
I am looking to use Boost property tree (or the needed one) and finally the
ASIO to send the complete filled struct as stream.
I tried below code to read complete data and it worked but -
---
#include <iostream>
#include

Let me tell you, w/o knowing characteristics about .ini file I manually
created a input.ini file like an oridinary .txt or .log file and thought to
try if it can be parsed entirely like normal file. Let me know, if I can
manually write in .ini file as one of my READ file where I try READING
entire LINE until end rather in "key, value" of .ini format.
Also, what could be the best and fastest way to large (~ 5KB) files on
Linux with GNU compilers and Boost-v1.54. Is memory-mapped files the
fastest way or iostream or boost.spirit?
On Wed, Oct 23, 2013 at 6:12 AM, Edward Diener

On Tue, Oct 22, 2013 at 9:01 PM, Rahul Mathur
Linux with GNU compilers and Boost-v1.54. Is memory-mapped files the fastest way or iostream or boost.spirit?
You must have intended to write different units. 5KB isn't large.

Or algorithm::split http://www.boost.org/doc/libs/1_54_0/doc/html/boost/algorithm/split_idp54600...
participants (4)
-
Edward Diener
-
Gordon Woodhull
-
Nat Goodspeed
-
Rahul Mathur