Hi all,
I am reading one text file.I have this line:
!seal_indicator_assembly_master_dwg.prt
I want to copy only "seal_indicator_assembly_master_dwg.prt" out of above line neglecting exlemetry mark(!).
How can i do this?
Printable View
Hi all,
I am reading one text file.I have this line:
!seal_indicator_assembly_master_dwg.prt
I want to copy only "seal_indicator_assembly_master_dwg.prt" out of above line neglecting exlemetry mark(!).
How can i do this?
You can read 1 char into temp var - and the rest into your string var
Or you can read the whole line and then - if the first char is ! - remove it from the string
do we have any standard function for that?
get, getline, basic_string::erase