Parsi Coders
معرفی چند تابع در دلفی - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Software Development Programming (http://parsicoders.com/forumdisplay.php?fid=37)
+--- انجمن: Pascal/Delphi (http://parsicoders.com/forumdisplay.php?fid=45)
+---- انجمن: Delphi (http://parsicoders.com/forumdisplay.php?fid=69)
+---- موضوع: معرفی چند تابع در دلفی (/showthread.php?tid=515)



معرفی چند تابع در دلفی - Amin_Mansouri - 07-10-2011

کد:
Procedure   Append   Open a text file to allow appending of text to the end
Procedure   Assign   Assigns a file handle to a binary or text file
Procedure   AssignFile   Assigns a file handle to a binary or text file
Procedure   AssignPrn   Treats the printer as a text file - an easy way of printing text
Procedure   BlockRead   Reads a block of data records from an untyped binary file
Procedure   BlockWrite   Writes a block of data records to an untyped binary file
Function   ChangeFileExt   Change the extension part of a file name
Procedure   ChDir   Change the working drive plus path for a specified drive
Procedure   Close   Closes an open file
Procedure   CloseFile   Closes an open file
Function   CreateDir   Create a directory
Function   DateTimeToFileDate   Convert a TDateTime value to a File date/time format
Function   DeleteFile   Delete a file specified by its file name
Function   DirectoryExists   Returns true if the given directory exists
Function   DiskFree   Gives the number of free bytes on a specified drive
Function   DiskSize   Gives the size in bytes of a specified drive
Function   Eof   Returns true if a file opened with Reset is at the end
Function   Eoln   Returns true if the current text file is pointing at a line end
Procedure   Erase   Erase a file
Function   ExtractFileDir   Extracts the dir part of a full file name
Function   ExtractFileDrive   Extracts the drive part of a full file name
Function   ExtractFileExt   Extracts the extension part of a full file name
Function   ExtractFileName   Extracts the name part of a full file name
Function   ExtractFilePath   Extracts the path part of a full file name
Function   FileAge   Get the last modified date/time of a file without opening it
Function   FileDateToDateTime   Converts a file date/time format to a TDateTime value
Function   FileExists   Returns true if the given file exists
Function   FileGetAttr   Gets the attributes of a file
Variable   FileMode   Defines how Reset opens a binary file
Function   FilePos   Gives the file position in a binary or text file
Function   FileSearch   Search for a file in one or more directories
Function   FileSetAttr   Sets the attributes of a file
Function   FileSetDate   Set the last modified date and time of a file
Function   FileSize   Gives the size in records of an open file
Function   FindClose   Closes a successful FindFirst file search
Function   FindFirst   Finds all files matching a file mask and attributes
Function   FindNext   Find the next file after a successful FindFirst
Procedure   Flush   Flushes buffered text file data to the file
Function   ForceDirectories   Create a new path of directories
Function   GetCurrentDir   Get the current directory (drive plus directory)
Procedure   GetDir   Get the default directory (drive plus path) for a specified drive
Variable   Input   Defines the standard input text file
Function   IOResult   Holds the return code of the last I/O operation
Procedure   MkDir   Make a directory
Variable   Output   Defines the standard output text file
Procedure   ProcessPath   Split a drive/path/filename string into its constituent parts
Function   PromptForFileName   Shows a dialog allowing the user to select a file
Procedure   Read   Read data from a binary or text file
Procedure   ReadLn   Read a complete line of data from a text file
Function   RemoveDir   Remove a directory
Procedure   Rename   Rename a file
Function   RenameFile   Rename a file or directory
Procedure   Reset   Open a text file for reading, or binary file for read/write
Procedure   ReWrite   Open a text or binary file for write access
Procedure   RmDir   Remove a directory
Procedure   Seek   Move the pointer in a binary file to a new record position
Function   SeekEof   Skip to the end of the current line or file
Function   SeekEoln   Skip to the end of the current line or file
Function   SelectDirectory   Display a dialog to allow user selection of a directory
Function   SetCurrentDir   Change the current directory
Type   Text   Defines a file as a text file
Type   TextFile   Declares a file type for storing lines of text
Type   TOpenDialog   Displays a file selection dialog
Type   TPrintDialog   Class that creates a printer selection and control dialog
Procedure   Truncate   Truncates a file size - removes all data after the current position
Type   TSaveDialog   Displays a dialog for selecting a save file name
Type   TSearchRec   Record used to hold data for FindFirst and FindNext
Type   TStringList   Holds a variable length list of strings
Procedure   Write   Write data to a binary or text file
Procedure   WriteLn   Write a complete line of data to a text file
منبع :
http://www.delphibasics.co.uk/ByFunction.asp?Main=Files