$read file
From UBot Studio
(Difference between revisions)
(Created page with "$read file is a Variable Function. The function returns the contents of a file. The read file function can also be used call a file from a URL location...") |
(→Example) |
||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
type text(<about me textarea>, $read file("C:\\Users\\LillyT\\Desktop\\my file.txt"), "Standard") | type text(<about me textarea>, $read file("C:\\Users\\LillyT\\Desktop\\my file.txt"), "Standard") | ||
− | <pre> | + | </pre> |
[[File:readfile.png]] | [[File:readfile.png]] | ||
Running the script fills the specified script with the contents of the file specified with the read file function. | Running the script fills the specified script with the contents of the file specified with the read file function. |
Revision as of 16:31, 15 October 2012
$read file is a Variable Function.
The function returns the contents of a file. The read file function can also be used call a file from a URL location by placing the url within the function in place of a file path.
Example
type text(<about me textarea>, $read file("C:\\Users\\LillyT\\Desktop\\my file.txt"), "Standard")
Running the script fills the specified script with the contents of the file specified with the read file function.