嗨,您可以在TCL脚本中创建如下文件。
set fp [open“somefile”r] set file_data [read $ fp] close $ fp您可以使用$ file_data写入int文件,如下所示。
设置数据[split $ file_data“ n”] foreach行$ data {#在这里做一些行处理}问候,KR
--------------------------------------------------
--------------------------------------------请注意 - 请注明
答案为“接受为解决方案”,如果提供的信息是有帮助的。给予您认为有用的帖子。感谢 -
------------------------- ------------------------
-------------------
以上来自于谷歌翻译
以下为原文
Hi,
you can create a file as below in TCL script.
set fp [open "somefile" r]
set file_data [read $fp]
close $fp
You can write intot hte file using the $file_data as below.
set data [split $file_data "n"]
foreach line $data {
# do some line processing here
}
Regards,
KR
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful.
---------------------------------------------------------------------------------------------
嗨,您可以在TCL脚本中创建如下文件。
set fp [open“somefile”r] set file_data [read $ fp] close $ fp您可以使用$ file_data写入int文件,如下所示。
设置数据[split $ file_data“ n”] foreach行$ data {#在这里做一些行处理}问候,KR
--------------------------------------------------
--------------------------------------------请注意 - 请注明
答案为“接受为解决方案”,如果提供的信息是有帮助的。给予您认为有用的帖子。感谢 -
------------------------- ------------------------
-------------------
以上来自于谷歌翻译
以下为原文
Hi,
you can create a file as below in TCL script.
set fp [open "somefile" r]
set file_data [read $fp]
close $fp
You can write intot hte file using the $file_data as below.
set data [split $file_data "n"]
foreach line $data {
# do some line processing here
}
Regards,
KR
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful.
---------------------------------------------------------------------------------------------
举报