I am trying to convert string to File object in javascript but I get an error.
my code:
var contents = fs.readFileSync('./dmv_file_reader.txt').toString()
var readerfile1 = new File([""], contents);
(i have to use contents as file and not as string)
and my output is :
ReferenceError: File is not defined
at d:\Workspace\DMV\dist\win-ia32-unpacked\resources\app.asar\main.js:67:32
at process._tickCallback (internal/process/next_tick.js:103:7)
any solution some1?