I found this in my learning and Im not completely sure I am utilizing it the right way. I get a positive return on Int M always and garbage on Location return. Any direction on what Im doing wrong.
result1 = scan.findWithinHorizon("MD844",0);
if(result1!=null) M++;
result2 = scan.findWithinHorizon("Location:",0);
if(result2!=null){
int temp = data.indexOf("Location:");
location = new String(data.substring(temp + 9,(temp +9) + 25));}