Easy way to work with files in java