I am looking for possible solutions to a code problem in my file encryption source. Can anyone please review and assist. Any CONSTRUCTIVE criticism is welcomed.
The problem is that the output file name is truncated. I am wondering if a null character is going to be the problem somewhere. Any ideas? Additionally, is anything "out of whack" in the encryption routine itself?
why don't you just save the filename in a string? that way you don't have to have a limit on it. additionally when calling the ifstream you just appened .c_str()