package javaapplication1;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class JavaApplication1 {
public static void main(String[] args) throws IOException {
InputStream is = null;
int i;
char ch;
try {
is = new FileInputStream("d://date.txt");
while ( (i = is.read()) != -1)
{
ch = (char)i;
System.out.print(ch);
}
} catch (Exception e) {
System.out.print(e.getMessage());
} finally {
if (is != null) {
is.close();
}
}
}
}
/*
run:
Java
C#
C++
PHP
*/