What condition shoul i use?
if notepad/file has contents it will display the contents.
but if the notepad/file has no contents, it will automatically let the user enter first name, last name and address then write it on the file.
here's my code. I don't know what condition to use if the file is empty.
I don't know what condition to use if the file is empty.
Attempt a read from the file. If after the read eof() returns true, the file is empty.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.