I'm new to C++ programming language, and recently I've been asked to work big tables of data that is registed in text files that are under .csv format,,,,
My problem is HOW CAN I USE THE DATA THAT IS OF FLOAT TYPE from a csv file ??
I've got an idea but i couldn't realise it, i thought of reading the file line bye line, but I don't know how to transform the string of characters into floating point numbers and also how to get rid of the commas that separate the numbers,,,,
I'll be gratful for any help, and thanks in advance
You could also use spanexcluding to get rid of commas within lines but i haven't used that in ages and don't remember syntax at all haha. It's on here somewhere
Yes, but C++ strings:
*Take care of all their memory management themselves.
*Have more intuitively-defined operators.
*Support a greater range of operations on them.
*Are more in accordance with common C++ methodologies.
i'll try them out and if i still have problem I'll reply later
@moorecm (1657): The first line of the file is a discription of each of the colums made of letters and numbers,,,,and all the rest is just numbers of type double,,,,and everything is separated by commas,,,,,also, there is nothig at the end of the line !