Professional Documents
Culture Documents
java
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
class TestClass {
//System MEssage
s = s1.getType() + "<->" + s1.getSender() + "\n";
fos.write(s.getBytes());
fos.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
-2-