Junilu Lacar wrote:Actually, you just need to enter the end-of-stream character if you're using System.in as your input stream. Just hit ENTER then Control-D (the end of stream character) and that should terminate the loop.
Nick Dook wrote:Thanks very much guys, tried the ctrl-z + end of stream key, but it didn't work.
So i decided to use this instead.
I have a problem though, I have to take 7 inputs from the user and inserting it into a text file in one line, separating each word by a comma, any suggestions?
Nick Dook wrote:My next question is how do I remove a line of data from a text file, by prompting the user which line to delete?
Nick Dook wrote:thanks very much for all the help.....I got through with my question using the following code below:
My next question is how do I remove a line of data from a text file, by prompting the user which line to delete?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |