hi i am working on a program that will read in several values from a data file using an end of file loop, and after it reads them it will copy the values to a different file. I have no problem with how to do that, but the original file data has numbers with commas: i.e. 1,444,023. it should be copied to the new file as: 1444023. i just dont know how to output the numbers ignoring commas. i didn't post the code because i dont think it is needed however i can post it if needed.
thanks for your replies.
chadly
Removing embedded commas from data
Page 1 of 12 Replies - 1215 Views - Last Post: 26 October 2006 - 06:52 PM
Replies To: Removing embedded commas from data
#2
Re: Removing embedded commas from data
Posted 26 October 2006 - 06:44 PM
just a suggestion... how bout had a functions to compare each index with in your objective... then output it without a comma...
#3
Re: Removing embedded commas from data
Posted 26 October 2006 - 06:52 PM
i just found a list of stream member functions and there is one called .ignore. would it work to just write
i'm gonna try that...thanks for the reply by the way!
filename.ignore(",")
i'm gonna try that...thanks for the reply by the way!
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|