I get an InputStream using
InputStream is = this.getClass().getResourceAsStream( "myfile.txt" );
After processing it I want to write to the same file “myfile.txt”. How to do this? I only know this file is in the class file folder and I don’t know its absolute path.
Thanks.
InputStream is = this.getClass().getResourceAsStream( "myfile.txt" );
After processing it I want to write to the same file “myfile.txt”. How to do this? I only know this file is in the class file folder and I don’t know its absolute path.
Thanks.