javascript file open ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • su817200
    New Member
    • Apr 2010
    • 13

    javascript file open ...

    Dear Friend,
    Here is a Javascript error in the following line->

    fptr = fopen("C:\temp\ PacketPass.txt" , 0);

    Could you please correct it...
    Rgds,
  • Christopher Nigro
    New Member
    • Jul 2010
    • 53

    #2
    Try:

    Code:
    fptr = fopen("C:\\temp\\PacketPass.txt", 0);

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      There is no such function as fopen in javascript.

      You can accomplish file operations using activeX objects.

      Though I recommend using a scripting language such as PHP or ASP.net.

      What are you trying to accomplish?

      Comment

      Working...