mirror of
https://github.com/rjNemo/deno_tuto
synced 2026-06-06 02:26:40 +00:00
10 lines
233 B
TypeScript
10 lines
233 B
TypeScript
// Run this example using
|
|
// deno run --allow-read examples/file.ts
|
|
|
|
const filenames = Deno.args;
|
|
|
|
for (const filename of filenames) {
|
|
const file = await Deno.open(filename);
|
|
await Deno.copy(file, Deno.stdout);
|
|
file.close();
|
|
}
|