parin.joka.io
The io module provides input and output functions such as file reading.
enum StdStream
Types 1
enumStdStream : ubyte
input
output
error
Functions 23
fn
void printf(StdStream stream = StdStream.output, A...)(IStr fmtStr, A args) @trustedPrints 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) @trustedPrints 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(A...)(IStr fmtStr, A args)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.fn
void eprintf(A...)(InterpolationHeader header, A args, InterpolationFooter footer)Prints formatted text to stderr. For details on formatting, see the `fmtIntoBuffer` function.fn
void 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.fn
void 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.fn
void trace(IStr file = __FILE__, Sz line = __LINE__, A...)(A args)Prints values and their source location to stdout.fn
void echon(IStr[] text...) @safe nothrow @nogcA basic print function that can be used with types that have an `EchonFunc` field.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) @safe nothrowReads an file in one go and store the data inside a new list. The list must be freed.fn
Maybe!LStr readText(IStr path) @safe nothrowReads an file in one go and store the data inside a new list. The list must be freed.