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?
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
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
do we have any standard function for that?
get, getline, basic_string::erase
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler