3.3.39. scriba_ReadSource()

[<<<] [>>>]

Loads the source code of a ScriptBasic program from a text file.

The return code is the number of errors happened during read.

int scriba_ReadSource(pSbProgram pProgram
  ){
@b{Do not get confused!} This function only reads the source. Does not compile it. You will usually need @xref{scriba_LoadSourceProgram()} that does reading, analyzing, building and all memory releases leaving finally a ready-to-run code in memory.

Before calling this function the function @xref{scriba_SetFileName()} should have been called specifying the file name.

See also @xref{scriba_ReadSource()}, @xref{scriba_DoLexicalAnalysis()}, @xref{scriba_DoSyntaxAnalysis()}, @xref{scriba_BuildCode()}.


[<<<] [>>>]