Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 09:11 PM
Member
 
Join Date: Jun 2007
Posts: 5
Fish is on a distinguished road
Saving Variables
Im curently writing a script for a few freinds and myself to keep track of our stats and i would like this file to save certain inputs as well as make a new file to make sure that there is a backup of old files. How would i do this?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-24-2007, 09:36 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Hi,

Check the following threads for solving your problem. Let us know if you cant solve it..

How to create a file
How to Rename a File
How to Move a File to Another Directory
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-24-2007, 10:50 PM
Member
 
Join Date: Jun 2007
Posts: 5
Fish is on a distinguished road
: /
I seem to have a problem and i think it is because im using netbeans but im not sure. Its most likely the reason since I commonly get errors when something should work fine. It is stating that "\" while creating the directory is an illegal escape character. Can anyone tell me what this means? Also cna anyone sugest a better IDE or way to program?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-24-2007, 11:22 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Please paste the line this error is being generated. What is the path you used? Does it a valid path for your operating system (you can not put backlash inside double quotes (you need to write twice of them to escape itself))? Pasting full error/exception here may help us understand your problem too.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 04:21 AM
Member
 
Join Date: Jun 2007
Posts: 5
Fish is on a distinguished road
"C:\java\game_Version_"+set1+".txt" is what i had, needed to be switched to "C:/java/game_Version_"+set1+".txt". sorry for the confusion
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-25-2007, 09:18 PM
Member
 
Join Date: Jun 2007
Posts: 5
Fish is on a distinguished road
ok i have put in the read file scripting which i got from the create a file link and its giving me a warning about
Note: C:\Documents and Settings\Bill\Halfball 2007\src\halfball2007\Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

what is this? how do i recomplie with that as a flag? how do i recomplie with a -deprecated flag?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 06-25-2007, 10:20 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
That means that you are using a deprecated method call or a deprecated class. To see the details use following command while compiling:

Code:
javac -Xlint:deprecation YourMainClass.java
instead of:

Code:
javac YourMainClass.java
If you are using a specific IDE, you need to find the way to add compiler parameters for your java project. (e.g. for netbeans: right click on your project node and select properties).
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving data...? easyRyder New To Java 8 07-15-2008 05:14 AM
Saving objects to file JavaForums Java Blogs 3 02-02-2008 07:48 PM
Saving data in an XML file Thez New To Java 1 12-08-2007 11:24 PM
saving variables to the harddrive Talon876 New To Java 1 11-02-2007 03:30 AM
Saving Blob through Hibernate Ed Database 1 07-09-2007 06:24 AM


All times are GMT +3. The time now is 12:34 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org