CatchmentSIM

File Handling

Hide Navigation Pane

File Handling

Previous topic Next topic No directory for this topic No expanding text in this topic  

File Handling

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

 

StartPrintToFile ( File Path , File Type , Platform , Write Style )

 

 

The StartPrintToFile procedure opens a file designated by File Path for writing in accordance with the parameters listed below.  A StartPrintToFile procedure must have a corresponding EndPrintToFile command further down the command sequence.

 

Parameter

Description

Accepted Values / Data Type

File Path

The full path of the output file to write to.

Text

File Type

Indicates whether to write to a text or binary file type.

ASCII or BINARY

Platform

The platform of the applications intended for use with the output file (only relevant when File Type = ASCII)

WINDOWS or UNIX

Write Style

In the case that the file already exists, indicates whether to overwrite or append the file.

OVERWRITE or APPEND

 

 

EXAMPLE

 

SaveDialogBox(&HMSFile,"HEC-HMS Project (*.hms)",".hms","")
 
StartPrintToFile(&HMSFile,ASCII,WINDOWS,OVERWRITE)
{Text File Export Procedures}
EndPrintToFile(&HMSFile)

 

 

 

 

EndPrintToFile ( File Path )

 

The EndPrintToFile procedure simply closes a file that has previously been opened using a StartPrintToFile procedure.

Comments (...)