13

8

I have written a small mathematica code to input a ".csv" file and output the data in a specific format, in a ".txt" file. I would like to give this program as an executable to my friend as she doesn't have mathematica installed. I've seen how one creates ".exe" from mathematica. However the process doesn't seem to work for me. Can anyone kindly help. Here is the mathematica code:

```
content=Drop[Transpose[Import["~/Downloads/19162.csv"]],2];
sorted=GatherBy[DeleteCases[DeleteCases[Flatten[content],""],"="],StringTake[#,StringPosition[#,"="][[1]][[1]]]&];
tab=OutputForm[TableForm[sorted]];
Export["~/Downloads/19162.txt",tab]
```

I would like the executable to input a file (in ".csv") format and output the text file in the "~/Downloads/" folder (of course the choice of the folder isn't important here).

Do you have an Enterprise Edition? – Kuba – 2013-12-20T14:18:16.797

5I'm afraid you are in for disappointment. Apart from the Enterprise Edition or Wolfram Player Pro

Mathematicadoes not have this feature, and even in those cases the distributable functionality is limited (I believe). – Mr.Wizard – 2013-12-20T14:20:15.1471http://www.wolfram.com/player-pro/how-player-pro-compares.html – Kuba – 2013-12-20T14:23:29.537

@PavithranIyer Import and Export functions cannot be compiled and written to C, so you are left with what can be done in the middle and writing something to do the bits on either side. – R Hall – 2013-12-21T18:55:42.887