Unit 'fpmimetypes' Package
[Overview][Classes][Procedures and functions][Index] [#fcl]

TFPMimeTypes.LoadFromFile

Load mime types from a file in mime.types file format.

Declaration

Source position: fpmimetypes.pp line 73

public procedure TFPMimeTypes.LoadFromFile(

  const AFileName: string

);

Arguments

AFileName

  

File to load.

Description

LoadFromFile loads the file aFileName and parses the file for MIME type definitions and extensions and adds them to the list of known MIME types. The file is expected to have the text format of the mime.types as found in unix systems.

Errors

if the file aFileName does not exist, an exception is raised.

See also

TFPMimeTypes.LoadFromStream

  

Load mime types from a stream in mime.types file format.


Documentation generated on: Dec 22 2024