1 今天继续整理暑假作业
package File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
public class CPP0047 {
public static void main(String[] args){
FileInputStream in=null;
try{
in=new FileInputStream("D:/s2.dat");
PrintStream out=new PrintStream(new FileOutputStream("D:/d2.dat"));
byte[] ch=new byte[1024];
int len=-1;
String s=" ";
while((len=in.read(ch))!= -1){
s=new String(ch,0,len);
}
char[] ch1=s.toCharArray();
for(int i=0;i<s.length();i++){
if((ch1[i]>='a')&&(ch1[i]<='z'))ch1[i]-=32;
}
out.println(ch1);
}catch (IOException e){
System.out.println("can not open txt");
}
}
}
2 遇到一些小问题 已基本解决
3 明天开始学习web