How many bytes should be written to the file "text" if you run follow program?
The answer is 4. But I can't understand.Please help me!
import java.io.*;
public class Test1{
public static void main(
String[] args)throws IOException{
FileOutputStream out=new FileOutputStream("text");
String s="abcd";
for(int i=0;i<s.length();++i){>
System.out.println(s.charAt(i));
out.write(s.charAt(i));
}
}