Project

General

Profile

File api ANSI

Files are not loaded in Scol memory.

http://www.scolring.org/files/doc_html/ansi_files.html

typeof myFile = File;;

fun main ()=
  _showconsole;

  set myFile = _FILEOpen _channel "myFolder/myFile.ext";
  _fooS strcat "Size = " itoa _FILESize myFile;
  _FILESeek myFile 50 0;
  _fooS _FILERead myFile 20;
  _FILESeek myFile 10 0;
  _fooS _FILERead myFile 25;
  _FILEClose myFile;
  0;;

Author : iri
Date : december 2011

Return to Examples