Given a user provides a data like boost::graph's Kevin Bacon csv, and want to load and process in the code provided with his question.
Those who want to try out the code of an answer don't have the user's workload data in their local storage, so they must produce it, which is a potentially error-prone, or even harmful (imagine there's a file called test.csv in the directory where their thesis-to-be resides) thing.
Or, if the data is inlined as a string in the answer, and treated such by C++'s std::stringstream
or python3's io.StringIO
(python2's StringIO.StringIO
), the answer's code is, for beginners, not trivially convertible for a processing of physical files.
Is there a consensual or known best-practice way to deal with such persistence issues arising when answering a question?