I need to delete all characters in a StringBuffer from the beginning through the first occurance of a newline character. Essentially, I am deleting the first line. I am aware of the delete method that takes the start and end, but I do not know how to determine the end index, or the first occurrance of the newline. There does not seem to be a method to find the index of a particular character, but I know this should to be an easy thing to accomplish. Can someone show me the code that will do this delete. Thanks in advance for the help, Rob
Don't know if its any more efficient. Cheers, Neil (And my example doesn't actually use a StringBuffer at all . Perhaps you need to consider if you need a StringBuffer at all) [ October 03, 2002: Message edited by: Neil Laurance ]