title: How can I use non-default delimiters when reading a text file with std::fstream?
body: <p>In my C++ code, I want to read from a text file (*.txt) and tokenize every entry. More specifically, I want to be able to read individual words from a file, such as "format", "stack", "Jason", "europe", <em>etc</em>.</p>
  
  <p>I chose to use <code>fstream</code> to perform this task, and I do not know how to set it's delimiter to the ones I want to use (space, <code>\n</code>, as well as hyphens and even apostrophes as in "Mcdonal's"). I figured space and <code>\n</code> are the default delimiters, but hyphens are not, but I want to treat them as delimiters so that when parsing the file, I will get words in "blah blah xxx animal--cat" as simply "blah", "blah", "xxx", "animal", "cat".</p>
  
  <p>That is, I want to be able to get two strings from "stack-overflow", "you're", <em>etc,</em> and still be able to maintain <code>\n</code> and space as delimiters at the same time.</p>