static public Location[] getLocations()
  {
    Charset charset = Charset.forName("UTF-8");
    try (BufferedReader reader = Files.newBufferedReader(new File("VMlocations.ini").toPath(), charset))
    {
      String line;
      StringBuilder builder = new StringBuilder();

      while ((line = reader.readLine()) != null)
        builder.append(line).append(System.lineSeparator());
      final String[] split = builder.toString().split(System.lineSeparator());
      final Location[] result = new Location[split.length];

      for (int i = 0; i < split.length; i++)
      {
        final String[] parts = split[i].split(":|:");
        result[i] = new Location(parts[0], parts[2]);
      }

      return result;
    } catch (IOException x)
    {
      System.err.format("IOException: %s%n", x);
    }
    return null;
  }