FileOutputStream

Create a File in Java

package SeleniumLearn.COM;
import org.testng.annotations.Test;
import java.io.FileOutputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import jxl.Workbook;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;

public class CreateNewFile {
    
@Test                     
public void CreatNewFile() throws Exception{
  DateFormat df=new SimpleDateFormat("yyyy_MMM_dd hh_mm_ss");
  Date d=new Date();

Subscribe to RSS - FileOutputStream