I'm trying to read from a file and replace all the dollar values to euros, for example if somewhere in the file there's $30.25, it should be converted to 26.84E. I managed to make it work somehow, but I don't know how to make it work if, for example, the text contains something like $30.25. (notice the dot in the end). I'm using the replace methods of string, but if I use replace(".",""), it obviously removes all dots there, so it won't work. Can you help me with any other way so this would work?
Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire