Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72764

Need help with the code to create a signle data file out of 1,200 txt's

$
0
0
Hello dear forum members,

My data include roughly 1,200 *.txt files, where (a) * is a 3 to 7 digit non-consecutive number representing participant's id, and (b) the contents of the file is participant's response -- text ranging from 5 to 500 words.

What will be the code to create a single data file with column 1 = participant's id (i.e., * -- name of the file), and column 2 = content from that file.

Thankfully,
Anton

Viewing all articles
Browse latest Browse all 72764

Trending Articles