Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Using a CDF program running in CDF Player, is it possible to use a system dialog box, or even just an Import statement such as Import["*.CSV"], to import data from a text or comma separated file on a personal computer? I have browsed the forums and Wolfram documentation and it appears that it is not possible, but all the questions were a little bit different in one way or another. My own attempts have failed to produce a dialog box.

share|improve this question
    
If you can get the data in your .CSV file via one of Wolfram's curated data sources, you could use that in a free CDF player –  Jagra Jul 31 '12 at 20:05
add comment

1 Answer 1

up vote 8 down vote accepted

Functionality you are looking for is included in Wolfram Player Pro. Detailed functionality difference relative to Free Wolfram CDF Player and Mathematica is listed here:

CDF Player, Player Pro, and Mathematica Features Comparison Chart

If including your data in CDF is possible in your case then

1) This blog (2nd example) shows simplest case of compression and inclusion of user data in CDF

2) This video shows advanced cases (notebook download link is above the video)

share|improve this answer
    
Thank you. Very frustrating to have to pay out additional hundreds to reclaim the Import function. –  Gary Palmer Jul 31 '12 at 19:01
    
@jagra. I'll keep that in mind. Right now, I need it for data that I produce locally. I can probably work around it by loading several files before I make the CDF file and providing some kind of file menu. –  Gary Palmer Jul 31 '12 at 22:31
    
@GaryPalmer I updated the post a bit due to your comment –  Vitaliy Kaurov Jul 31 '12 at 22:43
    
@VitallyKaurov, thank you. It will all be useful, though my matrices are not sparse. It looks like Compress might be helpful. My CSV files run from 100 to 700 KB each, and could easily exceed 1 MB. It will be interesting to see how much they can be compressed. The video segment on the order of evaluation of dynamic content was useful. –  Gary Palmer Aug 1 '12 at 5:28
    
@GaryPalmer I can understand the need for the Import restrictions. Without those restrictions it would be rather easy to use the player as a kind of generic Mathematica installation. You could build a CDF that imports Mathematica commands and executes them. That would make for a poor-man's FrontEnd implemented in CDF. –  Sjoerd C. de Vries Aug 1 '12 at 9:59
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.