Creating .txt files from a .txt file

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ThatWungiel
Posts: 1
Joined: 03 Aug 2021, 06:44

Creating .txt files from a .txt file

03 Aug 2021, 06:58

I need to make from a list with a format
<user> <data>
multiple .txt files with name is user and it content needs to be data
User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: Creating .txt files from a .txt file

03 Aug 2021, 07:07

Code: Select all

dir  = %A_ScriptDir%
user = thisuser
data = thesedata
For each, file in ["User1", "User2"]
 FileAppend, <%user%> <%data%>, %dir%\%file%.txt
MsgBox, 64, Success, Done!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hedehede81, OrangeCat and 298 guests