Курсовая работа: Объектно-ориентированное программирование
int seconds=d.get(Calendar.SECOND);
String S111=""+year;
String S122=""+mouth;
String S133=""+day;
String S144=""+hour;
String S155=""+minute;
String S166=""+seconds;
FileOutputStream OS2=new FileOutputStream (new File("C:\\USER\\Time.txt"));
DataOutputStream ods2 = new DataOutputStream (OS2);
ods2.writeUTF(S111);
ods2.writeUTF(S122);
ods2.writeUTF(S133);
ods2.writeUTF(S144);
ods2.writeUTF(S155);
ods2.writeUTF(S166);
ods2.close();
if(t1==2)
{
FileOutputStream OS6=new FileOutputStream (new File("C:\\USER\\teacher.txt"));
DataOutputStream ods6 = new DataOutputStream (OS6);
ods6.writeUTF("1");
ods6.close();
}
else
{
FileOutputStream OS6=new FileOutputStream (new File("C:\\USER\\teacher.txt"));
DataOutputStream ods6 = new DataOutputStream (OS6);
ods6.writeUTF("0");
ods6.close();