mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 23:34:04 +09:00
a working internet modem that only reads
This commit is contained in:
11
assets/disk0/nettest.js
Normal file
11
assets/disk0/nettest.js
Normal file
@@ -0,0 +1,11 @@
|
||||
let url="http://localhost/testnet/test.txt"
|
||||
|
||||
let file = files.open("B:\\"+url)
|
||||
|
||||
if (!file.exists) {
|
||||
printerrln("No such URL: "+url)
|
||||
return 1
|
||||
}
|
||||
|
||||
let text = file.sread()
|
||||
println(text)
|
||||
Reference in New Issue
Block a user