wood burning stoves*
The moose likes Beginning Java and the fly likes help on comment lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help on comment lines" Watch "help on comment lines" New topic

help on comment lines

catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78

i can find the comment lines....from the readline.... how do i get rid of the comment lines?
i tried....
while ((line = br.readLine()) != null && !matcherClass.find()) )
while ((line = br.readLine()) != null && !line.startsWith('//" )

i cant get the output plase help
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

while ((line = br.readLine()) != null )
line = strings[i];
output += line + "\n";
instring = line;
matcherColon = patternColon.matcher(instring);
matcherClass = patternClass.matcher(instring);
matcherCommand = patternCommand.matcher(instring);


would be fine ?

[My Blog]
All roads lead to JavaRanch
catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78
yes it can be found.....
I agree. Here's the link: http://aspose.com/file-tools
subject: help on comment lines
Similar Threads
BufferedReader problem
error with printing ArrayList elements
Compare Two Text Files
How can I find out how many lines there are?
Why does it not compile ?