joka.io
The io module provides input and output functions such as file reading.
enum StdStream
Types 1
enumStdStream : ubyte
input
output
error
Functions 22
fn
void printf(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args)Prints formatted text to stdout. For details on formatting, see the `fmtIntoBuffer` function.fn
void 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.fn
void 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.fn
void 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.fn
void println(StdStream stream = StdStream.output, A...)(A args)Prints text with a new line at the end to stdout.fn
void eprintf(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.fn
void 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.fn
void 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.fn
void 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.fn
void eprintln(StdStream stream = StdStream.output, A...)(A args)Prints text with a new line at the end to stderr.fn
void trace(IStr file = __FILE__, Sz line = __LINE__, A...)(A args)Prints values and their source location to stdout.fn
Fault readFileIntoBuffer(L = LStr)(IStr path, ref L listBuffer, bool binaryMode) @trustedReads an file in one go and store the data inside a buffer.fn
Fault readTextIntoBuffer(L = LStr)(IStr path, ref L listBuffer)Reads an file in one go and store the data inside a buffer.fn
Fault readBytesIntoBuffer(L = LStr)(IStr path, ref L listBuffer)Reads an file in one go and store the data inside a buffer.fn
Maybe!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.fn
Maybe!LStr readText(IStr path)Reads an file in one go and store the data inside a new list. The list must be freed.