Question: fstream is in which library?
Answer: C++ Library - <fstream> This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.