Duplicating method removed from stdlib
This commit is contained in:
@@ -85,11 +85,6 @@ public fun File.relativePath(descendant: File): String {
|
||||
*/
|
||||
public inline fun File.reader(): FileReader = FileReader(this)
|
||||
|
||||
/**
|
||||
* Iterates through each line of this file then closing the underlying [[Reader]] when its completed
|
||||
*/
|
||||
public inline fun File.forEachLine(block: (String) -> Any): Unit = reader().forEachLine(block)
|
||||
|
||||
/**
|
||||
* Reads the entire content of the file as bytes
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user