for (int o = 0; o < 48; o++) { os << "Write my data here....." ; for (int i = 0; i < 51) { os << i ; // But if I output this simple line and I get a 1 byte file and NO errors or exceptions! } }