How to Copy / Move Files

Posted December 15th @ 8:50 pm by m3Rlin

Delphi’s runtime library does not provide any routines for copying or moving files. However, you can directly call the Windows API CopyFile() function to copy a file. CopyFile() is also useful when moving files across drives because neither Delphi’s RenameFile() function nor the Windows API MoveFile() function can rename/move files across drives.
!!Note: The file attributes [...]

How to Print Text and Text Files in Delphi

Posted December 15th @ 6:59 pm by m3Rlin

This code how to print text and text files. This is the simplest way to print without using any external functions. All you have to do is open the LPT1 port (this is the default printer port) as if it where a file.
This code can be easily ported to Turbo Pascal (just change the function [...]

« Previous Entries