Forum Home
Press F1
 
Thread ID: 18720 2002-05-01 01:27:00 Delphi Dilemna Guest (0) Press F1
Post ID Timestamp Content User
46576 2002-05-01 01:27:00 I'm restructuring an application in Delphi 5. In the variables, test is a type file and name is a type string. name holds the address of a file, which I want to load into test. How do I do this? Guest (0)
46577 2002-05-01 02:46:00 Check out this webpage:

delphi.about.com

its a great starting place to go if you are unfamiliar with delphi. if you can't find what you're looking for, i think this page might be a help.

delphi.about.com


Regards,
Mark.
Guest (0)
46578 2002-05-01 02:53:00 One thing you will have to check:

is the string type wide enough to hold all the data in your file?

the string type is, of course, designed to hold strings not the contents of large files.

from memory a string in delphi can hold 2^30 characters (2 with 30 zero's after it) any longer and you may have problems.

Mark.
Guest (0)
46579 2002-05-01 05:18:00 In Pascal, I would just say:
'assign(test, name)', then open it for read or write. Delphi seems to want something like 'test := FileOpen(name, fmOpenRead)' Then it gets worse. All too clever for me.
Guest (0)
1