Try using a BufferedReader. Assuming c.input is an InputStream object,you can useBufferedReader input = new BufferedReader(c.input);Then just do "input.readLine();" which returns a String and thenconvert it to the type you actually want.