# LoadTextFile Method

## Applies to

THtmlViewer component

## Deprecated

Use method LoadFromFile instead.

## Declaration

procedure LoadTextFile(const Filename: ThtString);

## Description

The LoadTextFile method loads a file for viewing treating it as an ASCII text file. If the file is an HTML file, it will be displayed as text showing the HTML tags, etc.

## See also

- LoadFromDocument Method
- LoadFromFile Method
- LoadFromStream Method
- LoadFromString Method