×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    51

    How to create a extrernal file in local drive

    Hello
    I have very new in WRT.
    Now i want to create a file in local drive where I will save data from a web page.
    Is it possible to create a file?
    So can any one help me as soon as possible.

    Advance Thanks
    Jobayer

  2. #2
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    51

    Re: How to create a extrernal file in local drive

    I am working in Aptana Studio.

    function WriteFile()
    {
    var fh = fopen("c:\\MyFile.txt", 3); // Open the file for writing

    if(fh!=-1) // If the file has been successfully opened
    {
    var str = "Some text goes here...";
    fwrite(fh, str); // Write the string to a file
    fclose(fh); // Close the file
    }
    }

    I have write this function to write in a file but creating error for fopen() method.Are there any API to create file,Read/Write?

    BR
    Jobayer

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. [split] mbm build error
    By mando222 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2009-03-29, 12:32
  3. File server: Compilation error in carbide.c++
    By justteam in forum Symbian
    Replies: 6
    Last Post: 2007-01-03, 23:44
  4. How to create mbm file?
    By qt_raip in forum Symbian Tools & SDKs
    Replies: 13
    Last Post: 2004-05-12, 11:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×