Flowdock
method

read_file

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Encoding
read_file(filename, encoding, force_transcode = false) public

Reads the contents of filename and handles any encoding directives in the file.

The content will be converted to the encoding. If the file cannot be converted a warning will be printed and nil will be returned.

If force_transcode is true the document will be transcoded and any unknown character in the target encoding will be replaced with ‘?’

Show source
Register or log in to add new notes.