Ok, i have a file that contains thousands of lines, but i only need
the last part of the line, after the last '\' , so far what i have been
doing is reading the line in using getline, and using a for loop to
count back thru the line to the first '\' character, then using a for
loop to count forward to paste each character by character into a
new file. Thsi works fine except some lines it prints werid
characters. My question is can you think of a better way to do
this. At the present rate, it will do a 500KB text file in less then a
second, so the loops and the single character at a time process
doesn't seem to slow it down so i can live with it if need be, but i
was just interested in a alternative.
the line would basically look as follows :
\folder\folder\folder\filename.ext