class FileToString{
public static void main(String[] args) throws IOException{
String s = new String();
StringBuffer sb = new StringBuffer();;
BufferedInputStream in =
new BufferedInputStream(
new FileInputstream("c:\\j2sdk\\stream\\3.doc"));
/*
读取word内容并把内容写入到一个String中
@author Draco
*/
import java.io.*;
class FileToString{
public static void main(String[] args) throws IOException{
String s = new String();
String s1 = new String();;
BufferedReader in =
new BufferedReader(
new FileReader("c:\\j2sdk\\stream\\3.doc"));