This is the content of my Input file:
123
I want to take this input content to a int[] Array
My code:
BufferedReader br = new BufferedReader(new FileReader("yes.txt"));
int[] Array = br.readline().toCharArray(); // Error as it has to be int array
How to solve this: output:
Array[0]=1
Array[0]=2
Array[0]=3