I'm quite new to Java, but how would I go about searching a file for a tag, then everything between the tags, like a string of text, would be assigned to a variable.
For example, I'd have <title>THE TITLE</title>
, But then I wanted to save the string "THE TITLE" to a variable called title1, or something.
How should I go about doing that? Thank you.