VRTE AraPER_Kvs 的一个问题

You can update AraPER_Kvs example, WriteToFile() function in this way:

from   fsh->OpenFileReadWrite( filename);

to      fsh->OpenFileReadWrite( filename, OpenMode::kAppend );

VRTE AraPER_Kvs 的一个问题_第1张图片

With the kAppend enumerate every time you call the WriteToFile() the new string is appended to FileStorageTestFile.txt.

Result with your code:

   // Test write to file

   WriteToFile( shortNameF, filename, "timeString " );

   WriteToFile( shortNameF, filename, "test_message11111111 "  );

   WriteToFile( shortNameF, filename, "test_message22222222"  );

VRTE AraPER_Kvs 的一个问题_第2张图片


 

你可能感兴趣的:(服务器)