i get errors when i try to open a file using the file path
out_stream5.open("C:pathshowitems.txt", ios::out);
warning C4129: 'o' : unrecognized character escape sequence error C2100: illegal indirection
i get errors when i try to open a file using the file path
out_stream5.open("C:pathshowitems.txt", ios::out);
warning C4129: 'o' : unrecognized character escape sequence error C2100: illegal indirection
I presume you're working on Windows. The problem is probably that you need to escape the backslashes:
out_stream5.open("C:\\path\\showitems.txt", ios::out);