joka.io

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

Types 1

enumStdStream : ubyte
input
output
error

Functions 22

fnvoid printf(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args)Prints 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)Prints 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(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprintf(StdStream stream = StdStream.output, A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.
fnvoid eprintfln(StdStream stream = StdStream.output, 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(StdStream stream = StdStream.output, 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(StdStream stream = StdStream.output, A...)(A args)Prints text to stderr.
fnvoid eprintln(StdStream stream = StdStream.output, 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.
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)Reads an file in one go and store the data inside a new list. The list must be freed.
fnMaybe!LStr readText(IStr path)Reads an file in one go and store the data inside a new list. The list must be freed.
fnMaybe!LStr readBytes(IStr path)Reads 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 @nogcWrites a file.
fnFault writeText(IStr path, IStr text) @nogcWrites a file.
fnFault writeBytes(IStr path, IStr bytes) @nogcWrites a file.