mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
8 lines
233 B
JavaScript
8 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);
|