How to Get a handle on your files ?



How to Get a handle on your files ?..

Answer / Pradip Kumar Dubey

To get a handle on a file in Delphi, you can use the TFileStream class. First, create a new instance of TFileStream and set its Mode property to one of the following values: nn- fmOpenRead - To open the file for reading.n- fmOpenWrite - To open the file for writing (creates it if it doesn't exist).n- fmAppend - To open the file for appending.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to use the TUpdateSQLProvider.OnUpdateRecord method ?

1 Answers  


Do the ADO components come with the professional version of Delphi 6?

1 Answers  


How to create a power function?

1 Answers  


What types of Routers are able to be used?

1 Answers  


How to Move controls at runtime ?

1 Answers  


How to Retrieve the line number that a memo's cursor is on?

0 Answers  


How to Debug CORBA clients and servers?

1 Answers  


How can one prevent a TForm from being moved or resized?

0 Answers  


Are there any tools to help me migrate my applications to Delphi?

1 Answers  


How to Write a raw string of data to the printer?

1 Answers  


why Paradox slow on some computers and not on others ?

1 Answers  


How to Select an item in a TListView when the checkbox is checked ?

1 Answers  


Categories