Board index » delphi » Opening a File/Writing a FIle

Opening a File/Writing a FIle

I need to know how to Open a file and then input data and either write the
file again or update the current file..
PLEASE help!
give code if possible :)

Thanks

 

Re:Opening a File/Writing a FIle


Quote
"sonic999" <sonic...@total.net> wrote:

Take a look at the FileStream object. It's the oo way of playing with
files. There are only a few methods and properties. It is pretty
straightforward. Don't be alarmed by the word stream, cause that is
just what it is: a stream of bytes like anything else in your PC.

Good luck.

Quote
>I need to know how to Open a file and then input data and either write the
>file again or update the current file..
>PLEASE help!
>give code if possible :)
>Thanks

--------------------
Kris De Decker
--------------------

Re:Opening a File/Writing a FIle


Quote
sonic999 wrote:

> I need to know how to Open a file and then input data and either write the
> file again or update the current file..
> PLEASE help!
> give code if possible :)

> Thanks

The functions you are looking for would be OpenFile, CloseFile, Write,
Read, etc. You will find them documented in the help files. Your question
is a little too vague to answer completely. I would help to know if you
are intending to store bytes, integers, records or such.

Other Threads