Hey all,
I am trying to read a .bat file's text, changing its text, and saving it, all through R. Does anyone have any suggestions?
Thanks
I did something similar recently. I used readr::read_lines
to read the file into a dataframe of strings. Then I did the string manipulation with stringr
. Finally I wrote the results to a text file using cat
(you need to open the file and obtain a connection using file(open="a")
.
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.