@Throws(IOException::class) protected fun transferFromFile(idFile: File?) { BufferedReader(FileReader(idFile)).use { br -> var line: String while (br.readLine().also { line = it } != null) { line = line.trim { it <= ' ' } if (line.length > 0) { transfer(line) } } } }
Transfer all the sequences listed in the supplied file , interpreting entries appropriately .