<doc>
  <legacy_id>1860</legacy_id>
  <name>file</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Files, Folders, &amp; Resources</category>
  </classification>
  <references>
    <command tag="close file">close file Command</command>
    <command tag="revCopyFile">revCopyFile Command</command>
    <keyword tag="http">http Keyword</keyword>
    <keyword tag="resfile">resfile Keyword</keyword>
    <keyword tag="binfile">binfile Keyword</keyword>
    <property tag="fileType">fileType Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Used as a <keyword tag="URL">URL</keyword> type with such <glossary tag="command">commands</glossary> as <command tag="put">put</command> and <command tag="get">get</command> to designate a <glossary tag="local file">local file</glossary>.</summary>
  <examples>
    <example>put the htmlText of field 1 into URL "file:/Drive/Folder/File"</example>
    <example>answer URL "file:myPrefs.txt"</example>
    <example>put URL "file:C:/abc.def" into savedInfo</example>
    <example>put "Test" into word 3 of URL "file:/Hard Drive/Applications/Test"</example>
  </examples>
  <description>
    <p>Use the <b>file</b> <glossary tag="keyword">keyword</glossary> to work with <glossary tag="text file">text files</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>file</b> <glossary tag="URL scheme">scheme</glossary> indicates a <glossary tag="text file">text file</glossary> which is located on the user's system. The <keyword tag="file">file</keyword> is specified by either a <glossary tag="absolute file path">full path</glossary> starting with "/", or a <glossary tag="relative file path">relative path</glossary> starting from the <property tag="defaultFolder">defaultFolder</property>.</p><p/><p>A URL container can be used anywhere another container type is used.</p><p/><p>Different operating systems use different characters to mark the end of a line. Mac OS and OS X use a return character (ASCII 13), Unix systems use a linefeed character (ASCII 10), and Windows systems use a return followed by a linefeed. When you use a <b>file</b> <keyword tag="URL">URL</keyword> as a <glossary tag="container">container</glossary>, LiveCode automatically uses the current system's standard <href tag="../glossary/enddashofdashline_marker.xml">end-of-line marker</href> and LiveCode's linefeed character.</p><p/><p><code/><img src="202651"/> <b>Tip:</b><code/> To put data into, or get data from, a <glossary tag="binary file">binary file</glossary>, use the <keyword tag="binfile">binfile</keyword> <glossary tag="keyword">keyword</glossary> instead.</p><p/><p>For technical information about URLs and the <b>file</b> <keyword tag="URL">URL</keyword> scheme, see RFC 1630 at &lt;<u>http://www.ietf.org/rfc/rfc1630.txt</u>&gt;.</p>
  </description>
</doc>