file
write
参数名 | 描述 | 可否为空 |
---|---|---|
path | 写出的路径 | 否 |
content/bytes | 内容,字符串或字节数组 | 否 |
append | 布尔类型,是否追加输出,默认为false | 是 |
无返回值
- 写出文件,内容为
hello world!
${file.write('/data/test.txt','hello world!')}
bytes
参数名 | 描述 | 可否为空 |
---|---|---|
path | 要读取的文件路径 | 否 |
返回值类型:byte[]
- 读取
/data/test.txt
文件
${string.bytes('/data/test.txt')}
string
参数名 | 描述 | 可否为空 |
---|---|---|
path | 要读取的文件路径 | 否 |
charset | 编码格式,默认为UTF-8 | 是 |
返回值类型:String
- 读取
/data/test.txt
文件
${string.string('/data/test.txt')}
当前内容版权归 spider-flow 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 spider-flow .