Where are contents of file pointers stored in C/C++
So this is how we read files in C/C++ https://code.sololearn.com/c3MSc8YymEed/?ref=app But my question is, where the file pointer '*f' is pointing towards. Is the file stored in the RAM of the system and pointing towards that or is pointing towards the storage where file is stored ? I have seen enough of this answers everywhere (not needed) " A file pointer is a pointer to a structure, which contains information about the file, including its name, current position of the file, whether the file is being read or written, and whether errors or end of the file have occurred. The user does not need to Know the details, because the definitions obtained from stdio.h include a structure declaration called FILE. The only declaration needed for a file pointer is symbolized by FILE *fp; Now we use this file pointer fp to perform operations. " I am currently working on embedded projects where RAM and Storages matter , so I need to find where the contents of file pointers are stored, RAM or storage device?