title: How to check if a file exists and is readable in C++?
body: <p>I've got a fstream my_file("test.txt"), but I don't know if test.txt exists. In case it exists, I would like to know if I can read it, too. How to do that?</p>
  
  <p><em>I use Linux.</em></p>