반응형
import java.io.*;
public class Mains
{
public static void main(String[] args) throws FileNotFoundException, IOException
{
File file = new File("c:\\java\\abc.txt");
FileInputStream fis = new FileInputStream(file);
byte[] by = new byte[65536];
int count = fis.read(by);
for(int i = 0; i<count; i++){
System.out.println(i+" : "+(char)by[i]);
}
}
}
반응형