forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclose-file.xml
More file actions
executable file
·76 lines (62 loc) · 2.97 KB
/
Copy pathclose-file.xml
File metadata and controls
executable file
·76 lines (62 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<doc>
<legacy_id>1408</legacy_id>
<name>close file</name>
<type>command</type>
<syntax>
<example>close file <i>filePath</i></example>
</syntax>
<synonyms>
</synonyms>
<summary>Closes a <keyword tag="file">file</keyword> that was opened with the <command tag="open file">open file</command> <glossary tag="command">command</glossary>.</summary>
<examples>
<example>close file "/Desktop/Temp"</example>
<example>close file line 1 of the openFiles</example>
<example><p>open file (specialFolderPath("desktop") & "/text.txt")</p><p>write "This is a test" to file (specialFolderPath("desktop") & "/text.txt")</p><p>close file (specialFolderPath("desktop") & "/text.txt")</p></example>
</examples>
<history>
<introduced version="1.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
<disk/>
</security>
<classification>
<category>Files, Folders, & Resources</category>
</classification>
<references>
<function tag="openFiles">openFiles Function</function>
<function tag="sysError">sysError Function</function>
<command tag="delete file">delete file Command</command>
<command tag="open file">open file Command</command>
<command tag="read from file">read from file Command</command>
<command tag="write to file">write to file Command</command>
<command tag="seek">seek Command</command>
<command tag="close">close Command</command>
<command tag="close driver">close driver Command</command>
<property tag="serialControlString">serialControlString Property</property>
<keyword tag="COMn:">COMn: Keyword</keyword>
<keyword tag="modem:">modem: Keyword</keyword>
<keyword tag="file">file Keyword</keyword>
<keyword tag="LPT1:">LPT1: Keyword</keyword>
<keyword tag="printer:">printer: Keyword</keyword>
</references>
<description>Use the <b>close file</b> <glossary tag="command">command</glossary> to release a <keyword tag="file">file</keyword> after reading from it or writing to it. (A <keyword tag="file">file</keyword> that is open for writing can't be used by any other application until you've closed the <keyword tag="file">file</keyword>.)<p></p><p><b>Parameters:</b></p><p>The <i>filePath</i> is the <glossary tag="file path">name and location</glossary> of the <keyword tag="file">file</keyword> you want to close. If you specify a name but not a location, LiveCode assumes the <keyword tag="file">file</keyword> is in the <property tag="defaultFolder">defaultFolder</property>.</p><p></p><p><b>Comments:</b></p><p>Any files you have opened are closed automatically when you quit the application.</p><p></p><p>If you try to close a file that is not already open, the <b>result</b> function is set to.</p></description>
</doc>