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 8829423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:49:54+00:00 2026-06-14T07:49:54+00:00

I am working on a java project and I was wondering if it is

  • 0

I am working on a java project and I was wondering if it is possible to write a code that can create a txt file directly into the bin folder (for example the bin folder for eclipse, where I can use getClass() to access the txt files) so that the user will not be able to see the created txt files when using the program.

  • 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-14T07:49:55+00:00Added an answer on June 14, 2026 at 7:49 am

    You can surely do this. But think again. User does not run program from Eclipse. User typically runs program packed in jar, so all class files are not in filesystem but into jar. Moreover the user even probably does not have rights to write into file system except special folders.

    Bottom line: you you want to create application that stores some run-time data in file system you should either user user home or temporary directory or use java.util.prefs.Preferences that provide platform independent way to save and retrieve data using file system in unix and registry in windows.

    If you choose to create file yourself you can retrieve use home and temporary directory using system properties user.home and java.io.tmpdir.

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

Sidebar

Related Questions

I'm working on a java project that will allows users to parse multiple files
I'm currently working on a java project that requires me to make a system
I'm working on a small java project aiming to transform a BitSet into several
I'm working on code for a Java project, I currently have replaceAll(String, int) in
Was thinking about implementing tearaway tabs on a Java project I'm working on. Wondering
I am currently working on a Java project that will allow me to text
I've been working on a project that requires communication both directions between Java and
I am working on a project that requires appending to a AES/CTR encrypted file.
I'm working on a mainly Java based project, that also has a couple of
I am working on a JAVA project in which there are multiple terminals. These

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.