Java tutorial
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Scanner; public class Main { public static void main(String[] args) throws FileNotFoundException { Scanner scanner = new Scanner(new FileInputStream("c:/text.txt").getChannel()); System.out.println(scanner.nextLine()); // change the radix of the scanner scanner.useRadix(32); // display the new radix System.out.println(scanner.radix()); scanner.close(); } }