Difference between revisions of "FILETOSTR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 17: | Line 17: | ||
|- | |- | ||
|} | |} | ||
+ | |||
+ | From v6.4, the FILETOSTR() function is also supported in Python scripting. | ||
==Example== | ==Example== | ||
Line 27: | Line 29: | ||
[[Category:String Data Functions]] | [[Category:String Data Functions]] | ||
[[Category:ASCII File Access Functions]] | [[Category:ASCII File Access Functions]] | ||
+ | [[Category:Lianja v6.4]] | ||
+ | [[Category:Python Scripting]] |
Revision as of 06:06, 13 January 2022
Contents
Purpose
Function to read a file into a text string
Syntax
FILETOSTR(<expC>)
See Also
AT(), ATNEXT(), BINFILETOSTR(), BINSTRTOFILE(), FCLOSE(), FCREATE(), FERROR(), FGETS(), FOPEN(), FPUTS(), FREAD(), FREADSTR(), FWRITE(), MEMOREAD(), MEMOWRITE(), SET STRESCAPE, STUFF(), STR(), STREXTRACT(), STRTOFILE(), STRTRAN(), STRZERO(), SUBSTR(), TRIM()
Description
The FILETOSTR() function reads the specified file and returns its contents as text.
Parameter | Description |
---|---|
<expC> | Name of the file to be read. This should include the path if not in the current directory. |
From v6.4, the FILETOSTR() function is also supported in Python scripting.
Example
myString = filetostr("myfile.txt")