vibe.d beta banner
get vibe.d
0.8.3

Asynchronous I/O that doesn’t get in your way, written in D

Function readFileUTF8

Read a whole UTF-8 encoded file into a string.

string readFileUTF8 (
  GenericPath!(vibe.core.path.PosixPathFormat) path
) @safe;

string readFileUTF8 (
  string path
) @safe;

The resulting string will be sanitized and will have the optional byte order mark (BOM) removed.

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.