c++ - How can i create a class that inherits the methods from FILE -
How do I increase the FILE class to use my methods? In other words, how can I use all the tasks that are provided with the default FILE object and still have the same functionality that imitates the actual functions?
class myFile {file * _f; Public: Open MyFile (File * F) {/ * file here, then _f = f; * /}; Virtual ~ myFile () {/ * Close the file here}; // and add more methods here}
Comments
Post a Comment