You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var niofile = function(doc){
var imports = new JavaImporter(java.io.IOException, java.nio.file.Files, java.nio.file.Path, java.nio.file.Paths, java.nio.file.attribute.BasicFileAttributes);
with(imports){
var filepath = "E:\\aetna\\abc.txt";
var file = Paths.get(filepath);
var attr = Files.readAttributes(file, BasicFileAttributes.class);
System.out.println("Creation Time = " + attr.creationTime());