When you use the command
net accounts > net.txt
all the details which are present in the file net.txt will be overwritten since ">" overwrites all details.
if u wanna append to the file then use ">>"
for example
net computer >> net.txt
will append to net.txt