fn createFile(self: Dir, sub_path: []const u8, flags: File.CreateFlags) File.OpenError!File

Creates, opens, or overwrites a file with write access. Call File.close on the result when done. Asserts that the path parameter has no null bytes.

Parameters

self: Dir,
sub_path: []const u8,