FTP: Difference between revisions
Content added Content deleted
(Dialects of BASIC moved to the BASIC section.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,996: | Line 1,996: | ||
{{libheader|ftplib}} |
{{libheader|ftplib}} |
||
An embedded program so we can ask the C host to communicate with ''ftplib'' for us. |
An embedded program so we can ask the C host to communicate with ''ftplib'' for us. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">/* FTP.wren */ |
||
var FTPLIB_CONNMODE = 1 |
var FTPLIB_CONNMODE = 1 |
||
Line 2,163: | Line 2,163: | ||
WrenVM* vm = wrenNewVM(&config); |
WrenVM* vm = wrenNewVM(&config); |
||
const char* module = "main"; |
const char* module = "main"; |
||
const char* fileName = " |
const char* fileName = "FTP.wren"; |
||
char *script = readFile(fileName); |
char *script = readFile(fileName); |
||
WrenInterpretResult result = wrenInterpret(vm, module, script); |
WrenInterpretResult result = wrenInterpret(vm, module, script); |