Sorry for the big question. I am trying to input a file with a delimiter of | into an array and I was supposed to use cstring instead of string. The file goes in in the order of title|artist|duration|album|.
1. Am I entering into the array correctly? IF so, them am I removing from the array incorrectly? When I try to remove a file, I tell it to remove a certain title and it should remove the whole line when I show again, but it shows everything else that was behind that title. However the output file line gone expect for the delimiters ('|') it had.
2. How do I change it to cstring from string? The getline does not work when I use cstring.
Below is what I had before. And I'll post the whole code in a different comment if needed (its long). Thank you for any advice.