For various reasons, I'm placing data before and after notebook's source code, by means of a plain text editor, in this way:
(*
Author: An author
Subject: A subject
*)
(* Content-type: application/vnd.wolfram.mathematica *)
...
(* End of internal cache information *)
(* more data *)
Are there conceivable situations in which these data can be lost or damaged, during the normal Mathematica's activity ? If any, can, please, you suggest a safer way to embed the above mentioned data in a notebook, keeping them simple ?
A similar question has been debated in: How to programmatically comment out multiple source files? where reads "As the comments of Szabolcs and acl tell you: read in the file contents as text, put the comment characters before-after the text and save it again as text. Packages are stored as plain text files without any front-end dependent cache information, so this method is robust and foolproof.", but the this time the focus is on notebook, not packages.
What explained in Is there a way to embed a data set in a notebook? seems IMHO not pertinent, just because the minimalistic formattation is inescapably required.
.m
files. $\endgroup$ – m_goldberg Feb 18 '16 at 8:23