CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Text File

  1. #1
    Join Date
    Oct 2003
    Posts
    72

    Post Text File

    Hi guys
    I need to interact with a text file from Javascript code
    This file resides in the server
    Do you know some code to read from text files and write into them?

    Thanks in advance

  2. #2
    Join Date
    Jun 2005
    Posts
    1,255

    Smile Re: Text File

    Javascript is running on the client station, and has no access to the server.

    The only thing that can be done is a dialog between the client and the server, but that requires some code on the server side, and that code will not be written in javacript, but in an other language, .e.g. PHP, java, etc.

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: Text File

    And if you do have access to use PHP on your server look into the following commands with PHP.

    fopen
    fclose
    fread
    fgets
    fwrite
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured