delphi如何读取bin文件,并将读取结果在memo中显示出来?
解决方案 »
- 关于数据感知控件dbgrid时的使用问题?
- DELPHI 新手!刚学了第三天!有个问题想问下大家!在线等!急!!!
- 求救:Datagrid中的数据,打印问题
- 帮忙把VC改成DELPHI,谢谢
- 这个查询数据的DLL到底错在哪里?(第一次写DLL)!大家救救我吧!分不够再加!
- DLL中如何使用回调函数?
- 有兴趣,不妨请来试一试
- 这个东西我搞不定,不爽呀,帮我搞定,给分!!!!! 不够再开贴加
- AdvStringGrid RowSelect 判断行选 不准
- 怎样在Delphi环境下,在openGL中导入3DS模型
- 紧急:create一个Form后,该Form关闭,close事件caFree了,可是为什么assigned(myFormvar)还是为true呢?
- DELPHI2007 BUG
var
F:File;
Src:Array[0..31] of Char;
i,resu:Integer;
begin
result:=True;
if not FileExists(FileName) then
begin
result:=false;
exit;
end;
AssignFile(F,FileName);
Reset(F,1);
while not Eof(F) do
begin
BlockRead(F,Src,sizeof(Src),resu);
for i=0 to Resu do
Memo1.Lines.add(Src[Resu]);
end;
CloseFile(F);
end;