Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    writing to resource file

    I puted file (.txt) to my project as resource, so it gets bundled into .jar.
    Figured out how to read it.

    Can't find anything on google how to save new contence to that same file ?
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    I can't say I've ever tried this before. Something feels like it won't work unless you strip the jar apart and write to the correct place (doesn't sound like fun). What's wrong with writing and override configuration file that's just stored on a local machine? To me, the jar text file (sorry, I assumed its a config file which may be a poor assumption) should be kept intact in order to preserve a 'default' value.
    I'll poke around the net as well to see if I can't find something regarding this.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    I have been told that it cant be done.
    I remember in delphi I could write the exe that could alter itself at run time.
    Here seems that, this can't be done.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

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