title: read from a SKL file using HSSF
body: <p>i've been trying to read from a SKL file, using HSSF library, i want to read from it and write in a brand nes .XLS file</p>
  <p>this is my code:</p>
  <pre><code>
  import java.io.FileInputStream;
  import java.io.FileNotFoundException;
  import java.io.FileOutputStream;
  import java.io.IOException;
  
  import org.apache.poi.hssf.usermodel.HSSFCell;
  import org.apache.poi.hssf.usermodel.HSSFRow;
  import org.apache.poi.hssf.usermodel.HSSFSheet;
  import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  
  public class WriteReadExcel {
  
      public static void main(String[] args) throws FileNotFoundException, IOException {
          
          WriteReadExcel objhssf = new WriteReadExcel();
          //objhssf.writeToExcel();
          objhssf.readFromExcel();
      }
      
       public void writeToExcel() throws FileNotFoundException, IOException {
          
          //create a work object
          HSSFWorkbook wb = new HSSFWorkbook();
          
          // create a work sheet
          HSSFSheet wSheet = wb.createSheet(&quot;FirstHSSF&quot;);
          
          //create a row 
          HSSFRow wRow = wSheet.createRow(0);
          
          //create a column
          
          HSSFCell wCell = wRow.createCell(0);
          
          //write sth to this cell
          
          wCell.setCellValue(&quot;Hello&quot;);
          
          // save the file
          
          wb.write(new FileOutputStream(&quot;SimpleHSSF.xls&quot;));
          
          //close the workbook
          wb.close();
          
      } 
      
      public void readFromExcel() throws FileNotFoundException, IOException {
          
          // create an object of fileinputstream
          
          FileInputStream file = new FileInputStream(&quot;FILE.xls&quot;);
          
          // create workbook object
          HSSFWorkbook wb = new HSSFWorkbook(file);
          
          // refer to the worksheet
          HSSFSheet wSheet = wb.getSheet(&quot;FirstHSSF&quot;);
          
          // get the row 
          HSSFRow gRow = wSheet.getRow(0);
          
          // get the column
          HSSFCell gCell = gRow.getCell(0);
          
          // get the value 
          String strValue = gCell.getStringCellValue();
          
          // print the value
          System.out.println(strValue);
          
          //close 
          wb.close();
      }
  
  }
  </code></pre>
  <p>and i keep getting this error : Invalid header signature; read 0x3B4C5857503B4449, expected 0xE11AB1A1E011CFD0 - Your file appears not to be a valid OLE2 document</p>
  <p>it seems that it cant read the file ..</p>
  <p>can you please help with that ?
  you will notice the file has .xls as extension, but it is not an xls file it is sylk .</p>