LEOFileInstructionsGeneric

Includes:
<stdio.h>
"LEOFileInstructionsGeneric.h"
"LEOInterpreter.h"
"LEOScript.h"
<string.h>
<stdlib.h>
"fake_filesystem.hpp"

Introduction

Generic implementation of file I/O instructions. Should work on all ANSI C systems.



Functions

LEOCopyFileInstruction
LEOWriteToFileInstruction

LEOCopyFileInstruction


void LEOCopyFileInstruction(
    LEOContext *inContext ) 
Discussion

Pop two strings off the stack, the source path and destination path, and copy the given file to the given destination. (LEO_COPY_FILE_INSTR)


LEOWriteToFileInstruction


Discussion

Pop a file path and string off the stack and write the string to the file at the given path. (WRITE_TO_FILE_INSTR)