问题描述
大家好!
我在这里是新手,我刚刚开始我的VBcarier.. :)
这是我的问题(可能我对你很简单,但我发现它有点困难)。
我有一个txt文件,我想在其中替换每一个: "用。 !!!
更换完毕后,我想更换每个.3。用.5表示!!!
实际上txt是一个时钟文件,这里有很多...我想自动完成这个任务而不是用记事本打开每个sigle文件并且手动更换它们。
感谢您的时间和您的耐心!!!!
Hello to everyone!
I''m a newbie here, I just started my VB "carier".. :)
Here is my question (might me simple to you but I ''ve found it a bit hard).
I have a txt file in which I want to replace every ":" with a "." !!!
After this replacement I want to replace every ".3" with a ".5" !!!
In fact the txt is a clock file and there are a lot of them here... I want to do this task automatically and not by opening every sigle file with notepad and replacing them manually.
THANK YOU FOR YOUR TIME AND YOUR PATIENCE!!!!
推荐答案
好吧,首先你需要打开文件输入,抓取它的内容并关闭文件。
Well, first you''ll need to open the file for input, grab its contents and close the file.
这篇关于自动编辑文本文件并保存。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!