Title: res8
Version: 1.0
Author: YellowAfterlife
Description: This library provides simple interface for reading strings from
files in UTF-8 encoding. This is handy for loading non-english characters and
special symbols.
Functions:
res8.load(filename: string) - loads strings from specified file into memory.
res8.unload - unloads string from the memory (freeing it).
res8.loaded: integer - returns, if strings are currently loaded.
res8.length: integer - returns total number of strings loaded.
res8.line(index: integer): string - returns line with specified index
Sample code:
program res8;
uses res8;
var
  tmp: resource;
  str: string;
  i, h: integer;
begin
  // Load lines from file :
  res8.load('/data.txt'); // File with UTF8 text
  // Display lines:
  setColor(42, 42, 42);
    fillRect(0, 0, getWidth, getHeight);
  setColor(240, 240, 240);
  h := getStringHeight('');
  for i := 1 to res8.length do
    drawText(res8.line(i), 4, 4 + (i - 1) * h);
  rePaint;
  // Unload lines:
  res8.unload;
  // Wait till terminated:
  repeat delay(1000); forever;
end.