I'm a Java developer, so when trying to operate on a file you instantiate an object of the class, File. The object, by default, will have methods such as
FILE is from the C standard library and is included in C++ for backwards compatibility. C doesn't provide support for OOP so it doesn't have methods at all. You operate on
FILEs with free functions instead.
If you look at the sidebar on the site you linked you'll see a list of functions from the
cstdio header. Most of the functions that have names starting with f take a
FILE* as the first parameter. To rename files you can use rename; it doesn't take a
FILE*, it takes two paths (as
The more C++ way of doing file I/O is to use streams instead.