Board index » delphi » How Do I copy a new file to another existing one

How Do I copy a new file to another existing one

        Hello if anyone could help me it would be much appreciated.

Well here is my problem, I have got a copier that will resave a file to the
specified location.  I know windows 95 when you shut down, a screen comes
up that it is now safe to trun off your computer.  I also know that windows
95 calls this BMP under C;\windows\logos.sys.  What I have done is made my
own shut down bmp and tried copying with turbo pascal.  I am just a
begginer, and I am trying to do this with reserved words such as assign,
readln, read, write, writeln, rewrite, and reset.  I have it going but it
will only copy a third of the modified file (512 bytes) when the actually
modified file before copying is 128 kilo bytes.  If someone could help me
it would be much appreciated.  E-mail me at r...@gpu.srv.ualberta.ca.

Thanx alot Ryan  

 

Re:How Do I copy a new file to another existing one


Quote
Ryan Sikorsky wrote in message <01bd0e02$97a77720$28e68081@rks>...

> Hello if anyone could help me it would be much appreciated.

>Well here is my problem, I have got a copier that will resave a file to the
>specified location.  I know windows 95 when you shut down, a screen comes
>up that it is now safe to trun off your computer.  I also know that windows
>95 calls this BMP under C;\windows\logos.sys.  What I have done is made my
>own shut down bmp and tried copying with turbo pascal.  I am just a
>begginer, and I am trying to do this with reserved words such as assign,
>readln, read, write, writeln, rewrite, and reset.  I have it going but it
>will only copy a third of the modified file (512 bytes) when the actually
>modified file before copying is 128 kilo bytes.  If someone could help me
>it would be much appreciated.  E-mail me at r...@gpu.srv.ualberta.ca.

>Thanx alot Ryan

Don't use text files for BMPs! Use BlockRead and BlockWrite, with a record
size of 1 (Reset(f,1)) - see online help for BlockWrite for an example (in
BP7 anyway)

Or find a FAQ.

Frank

Other Threads