Subversion Repositories SmartDukaan

Rev

Rev 10168 | Rev 10440 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10168 Rev 10191
Line 355... Line 355...
355
                }
355
                }
356
                sb.append(entityID + "\n");
356
                sb.append(entityID + "\n");
357
                count++;
357
                count++;
358
            }
358
            }
359
        }
359
        }
360
 
-
 
-
 
360
        if(count>0){
361
        String exportFileName = exportPath + File.separator + "MostComparedProducts.html";
361
		    String exportFileName = exportPath + File.separator + "MostComparedProducts.html";
362
        File exportFile = new File(exportFileName);
362
		    File exportFile = new File(exportFileName);
363
        exportFile.createNewFile();
363
		    exportFile.createNewFile();
364
 
364
		
365
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
365
		    BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
366
                new FileOutputStream(exportFile)));
366
		            new FileOutputStream(exportFile)));
367
 
367
		
368
        writer.write(sb.toString());
368
		    writer.write(sb.toString());
369
        writer.flush();
369
		    writer.flush();
370
        writer.close();
370
		    writer.close();
-
 
371
        }
371
    }
372
    }
372
}
373
}
373
 
374