public String next() {
			try {
				String result = nextline;

				// If we haven't reached EOF yet
				if (nextline != null) {
					nextline = in.readLine(); // Read another line
					if (nextline == null)
						in.close(); // And close on EOF
				}

				// Return the line we read last time through.
				return result;
			} catch (IOException e) {
				throw new IllegalArgumentException(e);
			}
		}