Replace commas with points

Hi again !
i’m facing a problem while reading a file, what i’m trying to do is replacing commas with points inside a txt file.
Is there a function in root which can replace commas with points inside a string ?

already thanks
Ian

Hello,
I think you can try something with gSystem and sed command.
Example:

I did not test this command but it should be something like that.
Cheers

Hi,

Using ‘sed’ is probably your most efficient bet. [quote]Is there a function in root which can replace commas with points inside a string ?[/quote]technically the answer is:myTString.ReplaceAll(",",".");

Cheers,
Philippe

Thank you very much for your answers !!! I tried the ‘sed’ way and it works fine, so I’ll stick with it :slight_smile:

cheers
Ian