New course! Every coder should learn Generative AI!
Try a free lesson+ 4
An iostream is a stream which you can write to and read from, you probably won't be using them much on their own.
An fstream is an iostream which writes to and reads from a file.
So: every fstream is an iostream but not every iostream is an fstream.