getFieldFromFile

fun getFieldFromFile(file: String, field: String): String?

Reads a specific field from the specified file

Return

the value of the field if it exists, null otherwise

Parameters

file

the file to read from

field

the name of the field to read

See also

Throws

if there was an error while reading the file