Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Delete-a-file/Zig/delete-a-file.zig
Normal file
12
Task/Delete-a-file/Zig/delete-a-file.zig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const std = @import("std");
|
||||
const fs = std.fs;
|
||||
|
||||
pub fn main() !void {
|
||||
const here = fs.cwd();
|
||||
try here.deleteFile("input.txt");
|
||||
try here.deleteDir("docs");
|
||||
|
||||
const root = try fs.openDirAbsolute("/", .{});
|
||||
try root.deleteFile("input.txt");
|
||||
try root.deleteDir("docs");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue