this  or printstream fos new printstream new fileoutputstream result fileinputstream fis new fileinputstream flagsfile fos print basedirectory basedirectory getabsolutepath new bytestream   suck  fis  fos tobeclose false  suck   fos print options fos close  