reads external file