Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8749101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:38:19+00:00 2026-06-13T12:38:19+00:00

I am trying to load and store properties to a properties file over a

  • 0

I am trying to load and store properties to a properties file over a website (http://www.dasolorfire.freehostia.com/). My goal is to edit a property in-game, and then save the new property.

Here is storing code:

URL url = new URL("http://www.dasolorfire.freehostia.com/config.properties");
prop.store(new FileOutputStream(url.getFile()), null);

The problem is that when I run this, nothing happens. Instead, it saves it it the C:/ drive. When I use prop.load(url.openSream());, it works. How do you use FileOutputStream to save the file over the internet.

If I can’t get it to work over the internet, how can I save it in a jar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:38:20+00:00Added an answer on June 13, 2026 at 12:38 pm

    How do you use FileOutputStream to save the file over the internet.

    You don’t, unless you’ve mounted a file system over the internet, which you can do but probably isn’t what you’re actually doing.

    To send data to the server, in the usual case you talk to some server process that’s been designed to do that (HTTP, FTP, SSH, etc.).

    In your case, for instance, you might have a servlet container running as an HTTP server, and so use HttpURLConnection or similar to POST data to a servlet, which would in turn update the config file. This also gives you a server-side opportunity to enforce security, which is important, as everything sent from a client is suspect until proven otherwise.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to improve the load speed of my Magento store http://www.jinkou.info the
I'm trying to load an image store in locally and then delete original file.
I m trying to load properties file to create a configuration. namely foo.properties. What
I'm trying to load a store into a Select field in sencha touch 2.0
I'm trying to load a model to add dirty data to the store, but
Trying to load a small .txt file into mysql but get all my data
I've been trying to send more than one instance of Properties over a socket
Im trying to load data into a list using a store. When i run
I'm trying to load properties, and if it is not exist to create one.
I am trying to load a json store when I click on a particular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.