mirror of
https://github.com/denoland/deno.git
synced 2024-12-18 21:35:31 -05:00
4ded7519e9
Closes #27006
7 lines
233 B
JavaScript
7 lines
233 B
JavaScript
Deno.mkdirSync("data");
|
|
Deno.writeTextFileSync("data/1.txt", "Hello, world!");
|
|
const bytes = new Uint8Array((1024 ** 2) * 20);
|
|
for (let i = 0; i < bytes.length; i++) {
|
|
bytes[i] = i % 256;
|
|
}
|
|
Deno.writeFileSync("data/2.dat", bytes);
|