This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathbinfile.lcdoc
More file actions
51 lines (35 loc) · 1.64 KB
/
binfile.lcdoc
File metadata and controls
51 lines (35 loc) · 1.64 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
Name: binfile
Type: keyword
Syntax: binfile
Summary:
Used as a <URL> type with the <get> and <put> <command|commands> to
designate a <local file>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
answer myConversionFunction(URL "binfile:input")
Example:
put imageData into URL "binfile:/Main/project/test.gif"
Description:
Use the <binfile> <keyword> to work with <binary file|binary files>.
The <binfile> <URL scheme|scheme> indicates a <binary file> which is
located on the user's system. The <file> is specified by either a
<absolute file path|full path> starting with "/", or a
<relative file path|relative path> starting from the <defaultFolder>.
A URL container can be used anywhere another container type is used.
When you put data into a <binfile> <URL> or get data from it, LiveCode
does not translate <end-of-line marker|end-of-line markers> (<ASCII> 10
and <ASCII> 13) between the current <platform|platform's> standard and
LiveCode's internal standard of a linefeed. This ensures that
<binary file|binary data>, which may contain such characters, is not
accidentally corrupted.
If you are working with text data (such as text in fields), use the
<file> <URL scheme> instead.
References: revCopyFile (command), delete URL (command), put (command),
get (command), platform (glossary), binary file (glossary),
ASCII (glossary), local file (glossary), absolute file path (glossary),
URL scheme (glossary), keyword (glossary), relative file path (glossary),
end-of-line marker (glossary), command (glossary), URL (keyword),
file (keyword), fileType (property), defaultFolder (property)
Tags: file system