Today we are going to see various techniques for serializing objects, converting them to/from byte streams. This is a common task in concurrent programming.
GitHub Invitation URL: exercise20
file_header.hdeclares a shared magic number between reader and writer code.
read_file.cppreads a file using a QDataStream
write_file.cppwrites a file using a QDataStream
Build and run the applications (
write_file first). Verify
Modify the programs so they create a
QStrings and reads/writes from/to a file.
Recompile your applications and verify they can exchange the objects through the file.
Now, use git to commit the source files changed to the local repository.
Finally, use git push to synchronize the repository with that on GitHub.
You have completed the Exercise.