Description
Overwrites a text file by deleting the old content and replacing it with new content.
Parameters
Path
-
Set a value: enables you to directly write the desired path.
-
Save the previous step result: chooses the previous activity result as a path.
-
Calculate a value: enables you to use available properties and methods to form a path.
Text
-
Set a value: enables you to directly provide a text to be written to a file.
-
Save the previous step result: chooses the previous activity result as a text to write.
-
Calculate a value: enables you to use available properties and methods to form an output string.
Quite often, when working with text in a written document, you need to do a line break or other operations with strings. In these cases, you can use the following characters in the "Calculate a value" field when working with text:
\n
— line feed. You can also use the\x0D\x0A
value for line breaks in text.\t
— horizontal tab.\'
— single quote.\"
— double quote.
and so on.
Encoding
This parameter allows you to specify the encoding, here is a full list of the supported ones: 437
, 737
, 775
, 850
, 852
, 855
, 856
, 857
, 858
, 860
, 861
, 862
, 863
, 864
, 865
, 866
, 869
, 874
, 922
, 1046
, 1124
, 1125
, 1129
, 1133
, 1161
, 1162
, 1163
, 1250
, 1251
, 1252
, 1253
, 1254
, 1255
, 1256
, 1257
, 1258
, 28591
, 28592
, 28593
, 28594
, 28595
, 28596
, 28597
, 28598
, 28599
, 28600
, 28601
, 28603
, 28604
, 28605
, 28606
, maccroatian
, maccyrillic
, macgreek
, maciceland
, macroman
, macromania
, macthai
, macturkish
, macukraine
, koi8r
, koi8u
, koi8t
, armscii8
, rk1048
, tcvn
, georgianacademy
, georgianps
, pt154
, viscii
, iso646cn
, iso646jp
, hproman8
, macintosh
, ascii
, tis620
, utf7
, utf8
, cesu8
, ucs2
, utf16
, utf16le
, utf16be
, binary
, base64
, hex
, 932
, shiftjis
, csshiftjis
, mskanji
, sjis
, windows31j
, ms31j
, xsjis
, windows932
, ms932
, cp932
, 936
, cp936
, gb2312
, gb231280
, gb23121980
, csgb2312
, csiso58gb231280
, euccn
, windows936
, ms936
, 949
, cseuckr
, csksc56011987
, euckr
, isoir149
, korean
, ksc56011987
, 950
, eucjp
, gbk
, gb18030
, big5
.
Comment
Contains an annotation to the activity. The input text will be displayed above the activity name.
Usage Examples
This activity is useful when you need to write results of some actions in your program but you don't need to keep the full history of the actions. Then you can make use of this function to renew the file content.