Generation file with indentation