java - Getting Error while overriding excel(xls) file (The requested operation cannot be performed on a file with a user-mapped section open) -
workbook workbook = new hssfworkbook(); // //other stuff here fileoutputstream outputstream = new fileoutputstream(location); workbook.write(outputstream); outputstream.close();
first time code works fine, need override file same name when user request so.
when program enters in loop again, give following error:
the requested operation cannot performed on file user-mapped section open
and when try open file manually, give me pop showing file locked.
wiki
Comments
Post a Comment