tags:

views:

113

answers:

2

hi all

is there any alternate ways to blockwrite ?

now in my app i am using it like this

BlockWrite(file, buffer[1], Length(buffer));

i want to know alternate ways writing string to an exe file(binary )

just want to know different methods :)

can any one help me

thanks in advance

+1  A: 

Of course you can stick to Windows API, by using CreateFile, WriteFile, etc.

Andreas Rejbrand
+6  A: 

The standard VCL solution is TFileStream class (TFileStream.Write and TFileStream.WriteBuffer methods).

Serg