DelphiBasics
  Home  |  Delphi .net Home  |  System.IO NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 System.IO
 
  BinaryReader  Class 
  BinaryWriter  Class 
  BufferedStream  Class 
  Directory  Class 
  DirectoryInfo  Class 
  File  Class 
  FileAccess  Enumeration 
  FileAttributes  Enumeration 
  FileInfo  Class 
  FileMode  Enumeration 
  FileShare  Enumeration 
  FileStream  Class 
  FileSystemWatcher  Class 
  MemoryStream  Class 
  Path  Class 
  SeekOrigin  Enumeration 
  StreamReader  Class 
  StreamWriter  Class 
  StringReader  Class 
  StringWriter  Class 

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 ASP Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders

 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 

 
 
  System.IO.FileInfo Class
 
 Description
Calling writeTextBlock The FileInfo class provides file manipulation methods similar to File. Since FileInfo incurs only one security check, use when you have a number of things to do to a file.
 
The FileName in the constructor can contain just the file name, which will be processed in the current directory. Or you can provide a path + file name for a file in a subdirectory of the current directory. Or you can provide an absolute path + file name. After writeTextBlock
 Methods
AppendText  Returns a StreamWriter object allowing appending to the current text file
CopyTo  Copies the current file to a new location, optionally with a new name
Create  Creates a file with the current file name
CreateText  Cerates a StreamWriter object allowing write access the current file
Delete  Deletes the current file
MoveTo  Moves the current file to a new location, optionally with a new name
Open  Opens the current file for the specified read or write access
OpenRead  Opens the current file for reading only
OpenText  Opens the current file for reading as a text file
OpenWrite  Opens the current file for writing to only
ToString  Returns the current file name

 Properties
Attributes  FileAttributes  Gets or sets the FileAttributes of the current FileSystemInfo.
CreationTime  DateTime  Gets or sets the creation time of the current FileSystemInfo object.
CreationTimeUtc  DateTime  Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.
Directory  DirectoryInfo  Gets an instance of the parent directory.
DirectoryName  String  Gets a string representing the directorys full path.
Exists  Boolean  Gets a value indicating whether a file exists.
Extension  String  Gets the string representing the extension part of the file.
FullName  String  Gets the full path of the directory or file.
LastAccessTime  DateTime  Gets or sets the time the current file or directory was last accessed.
LastAccessTimeUtc  DateTime  Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
LastWriteTime  DateTime  Gets or sets the time when the current file or directory was last written to.
LastWriteTimeUtc  DateTime  Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Length  Int64  Gets the size of the current file.
Name  String  Gets the name of the file.

 Microsoft MSDN links
 
System.IO
System.IO.FileInfo
 
Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page