在web服务器上有一个文件http://localhost/web/temp/ceshi.txt小弟如何才能将这个文件加载到TFileStream中呢?小弟的代码如下:var
sFile:string;
fsSource: TFileStream;
begin
sFile:='http://localhost/web/temp/ceshi.txt';
fsSource:= TFileStream.Create(sFile,fmOpenRead);
.....
end; 程序执行到fsSource:= TFileStream.Create(sFile,fmOpenRead);报错,无法打开文件,请各位指教
sFile:string;
fsSource: TFileStream;
begin
sFile:='http://localhost/web/temp/ceshi.txt';
fsSource:= TFileStream.Create(sFile,fmOpenRead);
.....
end; 程序执行到fsSource:= TFileStream.Create(sFile,fmOpenRead);报错,无法打开文件,请各位指教
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货