This is a migrated thread and some comments may be shown as answers.

Unable to Read\Write Files

0 Answers 43 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steven
Top achievements
Rank 1
Steven asked on 02 Dec 2013, 08:47 PM
I am using the fileHelper.js file from the sample application located here - http://docs.icenium.com/sample-apps/sample-file

I am trying just the most basic implementation, but cannot get it to work.  Here is the code below from the head of the index.html page which does not show any errors, but does not read/write text files either.

<script>
        $(document).ready(function(){
        
            FileSystemHelper.prototype.writeLine.call(this,"Sample.csv","Hello World",this.onSuccess,this.onError);
            
            FileSystemHelper.prototype.readTextFromFile.call(this,"Sample.csv",this.onSuccess,this.onError);
        
        onSuccess = function(value) {
        $("#LabelTest").html(value);
        };
        
        onError = function(error) {
        $("#LabelTest").html("Failure" + error);
        };
        
        });
    </script>

Thanks,
Steve
Tags
General Discussion
Asked by
Steven
Top achievements
Rank 1
Share this question
or