PDA

View Full Version : How to split a string line



grsandeep85
29th July 2009, 10:07
Hi All,

I am reading a line from a text file as
56, 545.682, 897.000, -12.369
and the i am storing into an array datumstr[datumno_val] then how to split this string line and display in numberlineEdit=56, XlineEdit= 545.682, YlineEdit=897.000, and ZlineEdit=-12.369

yogeshgokul
29th July 2009, 10:11
Why repeating posts. Similar post is here (http://www.qtcentre.org/forum/f-newbie-4/t-how-to-split-a-string-line-22873.html).

parnedo
29th July 2009, 10:28
You can use: boost::split