Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 9.5 10.0 10.1 10.2 10.3 10.4 10.5 11.0 11.1 11.2 Statistic FMM Blog
You have to decide which encoding to use (if not native). We support a few encodings, but we can add more if you need something special.
|Component||Version||macOS||Windows||Linux||Server||FileMaker iOS SDK|
|Text||2.8||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
(old name: String.AppendTextFile)
|Text||The text to save.||"Hello World"|
|FilePath||The native file path. Something like "/Users/cs/desktop/test.txt" on Mac and "C:\Programs\Data\test.txt" on Windows. Files without path end in the root directory on Mac.||"test.txt"|
|encoding||The text encoding for text parameter.
Default is native.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
Returns "OK" or an error message.
DescriptionYou have to decide which encoding to use (if not native). We support a few encodings, but we can add more if you need something special.
If the file does not exist, it will be created. You can use this function for logging to a text file.
Please use Text.ReplaceNewline to define which line endings the file has.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Write UTF-8 file with some text:
Write a test text file:
- Watching for Errors with MBS Plugin
- FileMaker 18 File Script Steps vs. BinaryFile functions
- Evaluate vs. Script Trigger
Created 18th August 2014, last changed 16th September 2016
Feedback: Report problem or ask question.
MBS Xojo blog