Reading, Writing, and Deleting FilesFile ActionThe File action allows you to read, write, and delete files on the Tango Server machine. Some of the functions you might want to perform using this action are as follows:
The topics covered in this chapter include: ![]() Setting Up a File ActionYou can set up the three types of file operations using the File action.
|
|
![]() |
When you drag the File action icon from the Actions bar, the File
action editing window appears.
Setting Up Read OptionsFrom the File Operation drop-down list, select Read, if it is not already selected. The action editing window changes to show the options for the Read type operation, which you specify as follows:
If you do not specify a file, the action does not do anything. In other words, the action behaves like a file exists, but the file is empty. Specifically, the specified variable is empty. Setting Up Write OptionsFrom the File Operation drop-down list, select Write. The action editing window changes to show the options for the Write type operation. Specify the Write options as follows: c:\inetpub\wwwroot\client\uploads\mydoc.doc
You can also tell Tango to generate a temporary file by selecting Temporary file from the drop-down list. If you select this option, the server creates a temporary file using standard routines for the operating system.
Setting Up Delete OptionsFrom the File Operation drop-down list, select Delete. The action editing window changes to show the options for the Delete type operation. In the File field, specify the full, absolute path and file name of the file to delete. ![]() Handling File Security |
File reads, writes and deletes are enabled in Tango by default. If you want to disable (or enable) these features, you can do so by changing the following options in the config.taf application file, in the Feature Switches screen: |
|
Check or uncheck the check box beside the option.
|
Copyright © 1998, Pervasive Software Inc. All rights reserved.