swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

FTPConnectionRemoteInputFile

 
 

Library: FTP support (OMFTP)
Include: omftp.xin
Return type: String source

Returns: An external source object.


Declaration

define external string source function FTPConnectionRemoteInputFile
                        value FTPConnection this-FTPConnection
                 file   value string remote-filename

Argument definitions

this-FTPConnection
is an OMX component of type FTPConnection.
remote-filename
is the name of the file you want to read on the server.


Purpose

This is an external string source function for reading a remote file on an FTP server. The FTP connection is locked during the lifetime of this source. Any library call that uses the connection will signal an exception while the source is active. Error inquiry functions and the close functions are exceptions and are allowed while the source is active.

To use this function, you must include the following line near the start of your program:


  include "omftp.xin"

Examples:


  ; read a remote file and put it to #current-output
  output FTPConnectionRemoteInputFile MyCon file "test.dat"

  ; submit a remote file to a set of rules that count letters
  set lc to 0  ; this is a global integer declared earlier
  using group lcount submit FTPConnectionRemoteInputFile MyCon file "test.dat"
  output "Letter-count = %d(lc)%n"
  ...

      Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.