Internet Direct (Indy) Version 9.0.1 Beta
TIdGopher.GetTextFile
Retrieve a Gopher text File.

procedure GetTextFile(ASelector: String; ADestStream: TStream; IsGopherPlus: Boolean; AView: String);
Parameters
ASelector: String
the selector used to retrieve the file.

ADestStream: TStream
DEstination for the retrieved file.

IsGopherPlus: Boolean = False
Server supports Gopher+. Default value is False.

AView: String = ''
Alternate view listed. Default value is ''.

Description
GetTextFile is a procedure used to retrieve a Gopher Text File and store its content in ADestStream. ISGopherPlus should be set to True for Gopher+ servers, or False for non-Gopher+ servers where a file name can start with "+". AView is an alternative view listed for the file you are retrieving with Gopher+.

If you are retrieving a text file, use the GetFile method because GetTextFile will stop reading if it encounters the "." end of text file marker.