Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I have a problem...
The folowing code dont's work
String strOut = "test of stream";
String paht = "C:\\tmp\\test.log";
InputStream Entrada = System.in;
OutputStream Saida = System.out;
File fileLog = new File(path);
byte vectorbytes[] = new byte[1000];
vectorbytes = strOut.getBytes();
int sizebytes = Entrada.read(vectorbytes);
Saida.write(vectorbytes,0,sizebytes);
Saida = new FileOutputStream(fileLog);
Entrada.close();
Saida.close();
Exist any error?
Thanks and advance
Alan Brandt.
I have a problem...
The folowing code dont's work
String strOut = "test of stream";
String paht = "C:\\tmp\\test.log";
InputStream Entrada = System.in;
OutputStream Saida = System.out;
File fileLog = new File(path);
byte vectorbytes[] = new byte[1000];
vectorbytes = strOut.getBytes();
int sizebytes = Entrada.read(vectorbytes);
Saida.write(vectorbytes,0,sizebytes);
Saida = new FileOutputStream(fileLog);
Entrada.close();
Saida.close();
Exist any error?
Thanks and advance
Alan Brandt.