I am doing a quiz project for the school exam. I have to check if file length of a file is zero ( concept of files). Can I use tellg() ?
I am implementing it in a class .Then I use if() statement to check if file length of a file which stores the quiz questions is zero( i.e there are no questions). If it is zero Then I invoke another function asking the user to input questions first.
Here should i use tellg() to check if there are no questions in the file.
P.s: I don't want it to be too complex...as I've been learning c++ only from june 2006
2007-10-24
01:17:48
·
4 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design