wget -O = write to the approriate file and concatenate
#!/bin/bash x=1 while $x do wget http://website -O active.txt sleep 500 done