fun openDataFile(): InputStream? { val stream: InputStream = SantaFeExample::class.java.getResourceAsStream("santafe.trail") if (stream == null) { System.err.println("Unable to find the file santafe.trail.") System.exit(-1) } return stream }
Returns an input stream that contains the ant trail data file .