Change
FileStream^ fs = gcnew FileStream("data.txt", FileMode::Create);
to
FileStream^ fs = gcnew FileStream("data.txt", FileMode::Append | FileMode::Write);
In other words, open your file in append mode will allow you to write it at end of file.