Message from C, C++ discussions

December 2019

— No
Open files when u want or write


It doesnt matter, before you read/write/whatever to a file, you need a file stream or a file descriptor open to deal with it

— If you want to write at end, open at end

— But before operations on file

— Of course

— Thanks ✨

— If you want a complex example, checkout my school project on file handling:

Message permanent page

— N.B

— It's not good

— Suggest then

— (someone offers help by giving example) its bad

— Like wut