mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 18:13:46 +01:00
attempt to solve the problem reported at http://rejetto.com/forum/index.php?topic=13288.msg1065650#msg1065650
This commit is contained in:
parent
9d65d35c3c
commit
4b16de3fb7
@ -929,12 +929,7 @@ result:=(fn > '')
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function loadTextFile(fn:string):string;
|
function loadTextFile(fn:string):string;
|
||||||
begin
|
begin result:=UTF8decode(loadfile(fn)) end;
|
||||||
try result:=IOUtils.TFile.ReadAllText(fn)
|
|
||||||
except result:='' end;
|
|
||||||
try result:=UTF8decode(result)
|
|
||||||
except end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function loadFile(fn:string; from:int64=0; size:int64=-1):ansistring;
|
function loadFile(fn:string; from:int64=0; size:int64=-1):ansistring;
|
||||||
var
|
var
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user