Once i have loaded a file into my program how do i read the lines of codes and the blank lines? is there any method for that? Let say i want to get executable lines which has ; (semicolons) at the end, how do i do that? Please help me!!! [ May 15, 2006: Message edited by: catherine matthews ]
Joined: Oct 13, 2005
Do you mean how do you compile a .java file into bytecode? Or do you mean how do you parse a text file to see which line ends with a ";"? Your original post is rather ambiguous.
You tend to find these file reading and scanning classes are able to read each line from a text file as a String. There ought to be a method in the API telling you whether a String ends with something or not . . .
I hope I have ansered the question you meant to ask.