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

Thread: File I/O

  1. #1
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    File I/O



    I would like to be able to create and maintain a small text file on the server from which the applet runs, i.e. local to the applet. The file would contain information I want to keep persistent, such as a counter's current count, for example. The problem is, when I try to create the DataInputStream or DataOutputStream I get a security exception thrown.


    How am I supposed to maintain persistent data if I can't use a file? It's not like I'm trying to store it on the user's PC, I'm trying to store it on the applet's server! What am I missing? Or is there a better way to do what I want?



    --
    Jason Teagle
    [email protected]

  2. #2
    Join Date
    May 1999
    Posts
    20

    Re: File I/O



    Jason,

    You should be able to this.


    The first things I'd check are:

    1.) Are you sure you have "create/write" rights on the web server?


    2.)Have you successfully read a text file from this server already (basically do you have the file paths right?)


    Post the the code snippet here and I'll take a look.


    Mark



  3. #3
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: File I/O



    Mark: Thanks for the offer, but I am now told that you can't do file I/O from an applet. My server certainly isn't going to give me file access. So much for Java.


    "Java is pooh"



    --
    Jason Teagle
    [email protected]

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