2 Replies - 1325 Views - Last Post: 26 October 2006 - 06:52 PM Rate Topic: -----

#1 chadly724  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 26-October 06

Removing embedded commas from data

Posted 26 October 2006 - 06:18 PM

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

Is This A Good Question/Topic? 0
  • +

Replies To: Removing embedded commas from data

#2 NyeNye  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 248
  • Joined: 24-September 06

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...
Was This Post Helpful? 0
  • +
  • -

#3 chadly724  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 26-October 06

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
filename.ignore(",")


i'm gonna try that...thanks for the reply by the way!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1