parin.joka.io

The io module provides input and output functions such as file reading.

Types 1

enumStdStream : ubyte
input
output
error

Functions 23

fnvoid printf(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args) @trustedPrints formatted text to stdout. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid printf(StdStream stream = StdStream.output, A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text to stdout. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid printfln(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args) @trustedPrints formatted text with a new line at the end to stdout. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid printfln(StdStream stream = StdStream.output, A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text with a new line at the end to stdout. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid print(StdStream stream = StdStream.output, A...)(A args)Prints text to stdout.
fnvoid println(StdStream stream = StdStream.output, A...)(A args)Prints text with a new line at the end to stdout.
fnvoid eprintf(A...)(IStr fmtStr, A args)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprintf(A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprintfln(A...)(IStr fmtStr, A args)Prints formatted text with a new line at the end to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprintfln(A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text with a new line at the end to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprint(A...)(A args)Prints text to stderr.
fnvoid eprintln(A...)(A args)Prints text with a new line at the end to stderr.
fnvoid trace(IStr file = __FILE__, Sz line = __LINE__, A...)(A args)Prints values and their source location to stdout.
fnvoid echon(IStr[] text...) @safe nothrow @nogcA basic print function that can be used with types that have an `EchonFunc` field.
fnFault readFileIntoBuffer(L = LStr)(IStr path, ref L listBuffer, bool binaryMode) @trustedReads an file in one go and store the data inside a buffer.
fnFault readTextIntoBuffer(L = LStr)(IStr path, ref L listBuffer)Reads an file in one go and store the data inside a buffer.
fnFault readBytesIntoBuffer(L = LStr)(IStr path, ref L listBuffer)Reads an file in one go and store the data inside a buffer.
fnMaybe!LStr readFile(IStr path, bool binaryMode) @safe nothrowReads an file in one go and store the data inside a new list. The list must be freed.
fnMaybe!LStr readText(IStr path) @safe nothrowReads an file in one go and store the data inside a new list. The list must be freed.
fnMaybe!LStr readBytes(IStr path) @safe nothrowReads an file in one go and store the data inside a new list. The list must be freed.
fnFault writeFile(IStr path, IStr text, bool binaryMode) @trusted nothrow @nogcWrites a file.
fnFault writeText(IStr path, IStr text) @safe nothrow @nogcWrites a file.
fnFault writeBytes(IStr path, IStr bytes) @safe nothrow @nogcWrites a file.