aboutsummaryrefslogtreecommitdiff
path: root/src/StandardIO/MFileWriter.java
blob: b6a0a5fb2e541d6134f090ac8d92248b98fc4040 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*    */ package StandardIO;
/*    */ 
/*    */ import java.io.FileWriter;
/*    */ import java.io.IOException;
/*    */ import java.io.PrintWriter;
/*    */ import java.text.SimpleDateFormat;
/*    */ import java.util.Calendar;
/*    */ 
/*    */ public class MFileWriter extends PrintWriter
/*    */ {
/*    */   public MFileWriter(String file)
/*    */     throws IOException
/*    */   {
/* 16 */     super(new FileWriter(file));
/*    */   }
/*    */   public void writeDateAndTime() {
/* 19 */     Calendar c = Calendar.getInstance();
/* 20 */     SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yyyy\tHH:mm:ss");
/* 21 */     super.println(fmt.format(c.getTime()));
/*    */   }
/*    */ }

/* Location:           Modulus.jar
 * Qualified Name:     StandardIO.MFileWriter
 * JD-Core Version:    0.6.2
 */