binfile

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
binfile
Summary

Used as a URL type with the get and put commands to designate a local file.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
answer myConversionFunction(URL "binfile:input")
put imageData into URL "binfile:/Main/project/test.gif"
RelatedKeyword: URL, file
Property: fileType, defaultFolder
Command: revCopyFile, delete URL, put, get
Glossary: platform, binary file, ASCII, local file, absolute file path, URL scheme, keyword, relative file path, end-of-line marker, command
Description

Use the binfile keyword to work with binary files.

The binfile scheme indicates a binary file which is located on the user's system. The file is specified by either a full path starting with "/", or a 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 markers (ASCII 10 and ASCII 13) between the current platform's standard and LiveCode's internal standard of a linefeed. This ensures that 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.

Tagsfile system