Hi, I'm reading a line from a text_file.txt
The line looks like:
1#Jonh#Smith#PO Box#4.9#5.0#
The code being used:
fstream file;
file.open("Tbl_cliente.txt", ios::in); // open a file for input
file.unsetf(ios::skipws);
getline(file, Cli_nombre, '#');
getline(file, Cli_apellido, '#');
getline(file, Cli_dirr, '#');
file >> Cli_total_compras;
file >> Cli_balance;
But when I look for the content of Cli_balance it is equal to ZERO.
Cli_nombre, Cli_apellido, Cli_dirr are String
Cli_total_compras, Cli_balance are double
Any suggestion?