Results 1 to 2 of 2
Thread: File Chooser Issue
- 10-19-2012, 10:16 PM #1Member
- Join Date
- Oct 2012
- Rep Power
File Chooser Issue
I wrote a program to modify some .txt file for work and it works great. I am not going to be the one running the code so I decided to use the File Chooser to prevent typos from frustrating the user. When I add the text editor to the file chooser code I downloaded from the Java web site, the output stream stops outputting at line 483. The text file has 1384 lines in it. I added a counter to the editing section of the code and it tells me it is reading all 1384 lines. When I removed the editing section and tried to have it output the entire file to the new file I get the same result. It stops at about the same spot. I deleted that line from the original file thinking it had a character that was causing an issue. No luck. I even added the counter to the end of each condition and was able to output more lines but the file I am reading from still stops around 400 lines.
What would make the output stream stop outputting to my new file?
File Chooser is the only difference between the two programs.
I have run out of troubleshooting ideas and would really appreciate any suggestions.
Re: File Chooser Issue
Without an SSCCE, I've really no idea what bug is present in your code. Consider creating one of these. The process of creating this will involve paring down your code until either the error goes away, or you've isolated the error. Either way, either you've solved the problem, or you've got a nice small program to post here that will allow us to more easily help you solve it.
Last edited by Fubarable; 10-19-2012 at 11:04 PM.
- By vaggos in forum New To JavaReplies: 4Last Post: 09-03-2012, 01:09 PM
- By karno in forum NetBeansReplies: 4Last Post: 03-17-2010, 01:47 PM
- By Astghik in forum AWT / SwingReplies: 10Last Post: 01-14-2010, 07:44 PM
- By prabhurangan in forum AWT / SwingReplies: 12Last Post: 06-18-2008, 05:08 AM
- By shaungoater in forum New To JavaReplies: 0Last Post: 03-20-2008, 01:30 PM