Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked mFileToStr [By Metal]


Expermicid

Recommended Posts

[lenguaje=delphi]Function mFileToStr(Ruta: string): string;

var

sFile: HFile;

Buff: array of byte;

uBytes: Cardinal;

i: integer;

begin

sFile:= _lopen(PChar(Ruta), OF_READ);

uBytes:= GetFileSize(sFile, nil);

SetLength(Buff, uBytes);

_lread(sfile, @buff[0], uBytes);

_lclose(sFile);

for i:= 0 to uBytes -1 do

Result:= Result + chr(Buff);

end;[/lenguaje]

 

Autor: Metal_Kingdom

Edited by Expermicid
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.