I have this table:

data = Table[{x, y, Sqrt[r^2-x^2-y^2]-r+RandomReal[{0,0.005}]}, {x, 0, 2.5,0.5}, {y, 0, 2.5,0.5}];

How can I export it to a .txt file using Wolfram Cloud? Preferably in such a way that I can import it back and do further manipulations if I need to.

  • $\begingroup$ Is it essential that you have it as a TXT file or do you simply want to be able to export it and then re-import it? If you are just looking to have it cloud accessible, you simply have to use CloudPut and CloudGet. $\endgroup$ – kickert Sep 23 at 13:44
  • $\begingroup$ A txt file would be preferable so I can use the data in other softwares as well. $\endgroup$ – Rodrigo Sep 23 at 13:51
  • $\begingroup$ One issue you might run into is how Mathematica notates square roots. The cleanest approach might be to export it to a local TXT then copy that file to the cloud: CopyFile[Export["data.txt", data], CloudObject["data.txt"]]. Then bring it back in: ToExpression@ Import["https://www.wolframcloud.com/obj/YOUR.NAME/data.txt"] $\endgroup$ – kickert Sep 23 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.