mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-21 02:30:07 +02:00
18 lines
238 B
ObjectPascal
18 lines
238 B
ObjectPascal
program LoadFileApp;
|
|
|
|
uses
|
|
KolibriOS, CRT;
|
|
|
|
var
|
|
FileSize: LongWord;
|
|
Buffer: Pointer;
|
|
|
|
begin
|
|
ConsoleInit('Load File');
|
|
|
|
Buffer := LoadFile('/sys/example.asm', FileSize);
|
|
WriteText(Buffer, FileSize);
|
|
|
|
ConsoleExit(False);
|
|
end.
|