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?
This is a discussion on Problem of reading file!! within the C++ Programming forums, part of the General Programming Boards category; 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 ...
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
If I have eight hours for cutting wood, I spend six sharpening my axe.
do we have any standard function for that?
get, getline, basic_string::erase
If I have eight hours for cutting wood, I spend six sharpening my axe.