我目前用于将字符串插入文本文件的过程是读取文件并在我再次写入文件时对其进行修改,这似乎是每个人都在做的事情.
由于.net有这样一个多样化的库,我想知道是否有一个特定的命令用于在txt文件中的特定行插入字符串.
我想它看起来像这样:
dim file as file
file.open("filePath")
file.insert(string, location) 'this isn't actually an option, I tried
Run Code Online (Sandbox Code Playgroud)