Get input file and writting as output file