title: Howto save HashSet<String> to .txt?
body: <p>I want to store the HashSet to the server directory.
  But i'm now only been able to store it in .bin files.
  But how do I print all the Key's in the HashSet to a .txt file?</p>
  
  <pre><code>static Set&lt;String&gt; MapLocation = new HashSet&lt;String&gt;();
  
      try {
          SLAPI.save(MapLocation, "MapLocation.bin");
      } catch (Exception ex) {
  
      }
  
  public static void save(Object obj, String path) throws Exception {
      ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(
              path));
      oos.writeObject(obj);
      oos.flush();
      oos.close();
  }
  </code></pre>