Bytecoder icon indicating copy to clipboard operation
Bytecoder copied to clipboard

Virtual File System on FileOutpuStrem not work

Open marcom1981 opened this issue 2 years ago • 0 comments

I'm try to create file with simple FileOutpuStrem for temporary file.

The project compile but have a error in cosole:

File file = new File("prova.txt");
file.createNewFile();

FileOutputStream os = new FileOutputStream(file);
os.write("ciao".getBytes());
os.close();

This is the output console:


TFileOutputStream.java:69 Uncaught TypeError: bytecoder.imports.fileoutputstream.open0StringBOOLEAN is not a function
    at C.s3244 (TFileOutputStream.java:69:1)
    at p.s3243 (TFileOutputStream.java:68:1)
    at p.$95s3241 (TFileOutputStream.java:55:1)
    at p.$95s3231 (TFileOutputStream.java:44:1)
    at C.s4.s1785 (TFileInputStream.java:109:1)
    at C.s1775 [as main] (SimpleMain.java:33:1)
    at indexJs.html?_ijt=jeudemutt0ceprtd1aentq2fc1:13:23

This Featere is useful for port code who write temporary file.

File.createTempFile() also non work.

marcom1981 avatar Aug 09 '22 15:08 marcom1981