int i=0;char [] a=new char[N];StreamReader reader=File.open("filepath");while( (a[i]=reader.read()) !=null){ i++;}