Please edit the code and add proper indentations. All the statements should not start in column 1.
What is wrong with what the program does now?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
If you want the filename to end with .txt, concatenate ".txt" to the end of the String: file_name.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Concatenate to the String AFTER you have read a value into it.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
The code you just posted does not write to any file.
What is the code you just posted supposed to do?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
If the file is created in the Files class, how will this code get to the file that was created in the Files class so it can write to it?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Question Answered as of 1 Year Ago by
NormR1 What is line 41 supposed to do? Did you mean to use a try/catch block?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Why create the file until all the data has been entered and verified? Use the GUI for the user to enter the data, verify the data and save it in an arraylist. When the user is done entering the data and presses a button, create the file and write the contents of the arraylist to the file.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
not whate i want .
Please explain what the code does and how that is different from what you want.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
See line 30. After you press OK it is waiting for you to type in file name on System.in
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30