请教protool脚本s cript中,能否实现VB那样的打开关闭和读写文本文件功能?试了一下总是出错。
另外,在脚本中定义变量(如 "Dim Varx as Integer")也没编译通过。是不是要加调用VB的什么文件?
本人初学者,拷贝了一段程序,代码和出错信息如下:
代码:
Open "\Storagecard2\data.txt" For Output AS #1
' 打开输出文件。
Print #1, "This is a test" ' 将文本数据写入文件。
Print #1, ' 将空白行写入文件。
Print #1, "Zone 1"; Tab ; "Zone 2" ' 数据写入两个区(print zones)。
Print #1, "Hello" ; " " ; "World" ' 以空格隔开两个字符串。
Print #1, Spc(5) ; "5 leading spaces " ' 在字符串之前写入五个空格。
Print #1, Tab(10) ; "Hello" ' 将数据写在第十列。
编译时第一行就出错了:
Replacing ProTool name...
VB checking syntax...
Line: 1, Expected end of statement, For
1 Error, 0 Warnings
请教大家指点