Timeline for How do I save a variable or function definition to a file?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 18, 2012 at 13:58 | comment | added | partial81 | @szablocs: Thank you for extending your answer! It has a lot of useful additional information now! I am happy to see that my question opens such an interesting discussion about Save etc. | |
| Feb 18, 2012 at 13:45 | history | edited | Szabolcs | CC BY-SA 3.0 | added 491 characters in body |
| Feb 18, 2012 at 13:37 | comment | added | acl | please add the Export["file",Compress[dat],"String"] bit to your answer. I wrote it up for mine but luckily saw your comment before posting it. | |
| Feb 18, 2012 at 13:33 | history | edited | Szabolcs | CC BY-SA 3.0 | added 157 characters in body |
| Feb 18, 2012 at 13:32 | comment | added | Szabolcs | @Mr.Wizard A reason I personally don't like Save and DumpSave for storing data is that the variable names are hard-coded into the file, and are not easy to find out what they are after import. But this is just personal preference, so I didn't mention it in the answer. | |
| Feb 18, 2012 at 13:31 | comment | added | Mr.Wizard | I am encouraging you to extend your answer. Or I'll post. That's a threat. ;^) | |
| Feb 18, 2012 at 13:30 | comment | added | Szabolcs | @Mr.Wizard We could use M or MX if you wish. That's why I said "for example". Any format that can hold Mathematica expressions will do. I typically use Export["data.mmaz", Compress[data], "String"] as the fastest compact cross-platform solution. | |
| Feb 18, 2012 at 13:28 | comment | added | Mr.Wizard | Why should we use WDX rather than .m or .mx? | |
| Feb 18, 2012 at 13:25 | history | answered | Szabolcs | CC BY-SA 3.0 |