Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Enumerations | Functions
KEFile.h File Reference

Input file stream. More...

#include <Coconut/Coconut.h>

Go to the source code of this file.

Data Structures

struct  KEFile
 Input file. More...
 

Enumerations

enum  KEFileError { KENoFileError, KECanNotOpenFileError, KECanNotCloseFileError }
 Error code which is returned by file open. More...
 

Functions

KEFileError KEOpenInputFile (struct KEFile *dst, struct CNString *filename)
 Input file stream class. More...
 
void KEOpenStandardInput (struct KEFile *dst, struct CNResource *resource)
 Open input file stream. More...
 
KEFileError KECloseInputFile (struct KEFile *dst)
 Close the input file stream. More...
 

Detailed Description

Input file stream.

Copyright
Copyright (C) 2013 Steel Wheels Project

Enumeration Type Documentation

Error code which is returned by file open.

Enumerator
KENoFileError 

No error

KECanNotOpenFileError 

Can not open the file error

KECanNotCloseFileError 

Can not close the file error

Function Documentation

KEFileError KECloseInputFile ( struct KEFile dst)

Close the input file stream.

Returns
Error code
Parameters
dstDestination file structure
KEFileError KEOpenInputFile ( struct KEFile dst,
struct CNString *  filename 
)

Input file stream class.

Returns
Error code
Parameters
dstDestination file structure
filenameFile name to read
void KEOpenStandardInput ( struct KEFile dst,
struct CNResource *  resource 
)

Open input file stream.

Parameters
dstDestination file structure
resourceResource to allocate the file