用AU3来操作怎么用逗号替换掉文本文档的tab键
1个回答
展开全部
$file = "C:\test.txt"
$filehandle = FileOpen($file,0)
$read = FileRead($filehandle)
FileClose($filehandle)
$buffer = StringReplace($read,","," ")
$filehandle = FileOpen($file,2)
FileWrite($filehandle,$buffer)
FileClose($filehandle)
MsgBox(48,"替换完成","")
$filehandle = FileOpen($file,0)
$read = FileRead($filehandle)
FileClose($filehandle)
$buffer = StringReplace($read,","," ")
$filehandle = FileOpen($file,2)
FileWrite($filehandle,$buffer)
FileClose($filehandle)
MsgBox(48,"替换完成","")
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询