Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=fileClose+-+15489114 |
---|
width | auto |
---|
|
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | fileClose(fid) | Package | file | |
...
...
Description
Excerpt |
---|
|
Closes a previously opened file and removes it from memory. |
Info |
---|
Note: If you forget to close a file (opened with fileOpen) it will be automatically closed at the end of the script. However, if you are running a script that takes a lot of time to complete, it’s not a good practice to keep it open. |
...
Closes a previously opened file and removes it from memory.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
file id | Integer | Yes | The id of a file opened from a previous step that should be closed. | |
Return
...
Type
None
Return value has no meaning.
Error Handling
Throws String
...
- "invalid": if the path is invalid
- "cannot_work_on_directory": if the path is a directory, in fact, and not a file
- "unresolvable": if the file cannot be resolved
- "notfound": if the file is not found
Example
Example 1
Code Block |
---|
|
use "file";
int fid = open(filename); //fileOpen
fileClose(fid);//full name of the routine |
...
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "file_ |
---|
|
...
routine" and space = currentSpace ( ) | labels |
---|
|
...