Reads files from console.