Bookmark Topic Watch Topic
  • New Topic

how this error hndle

 
shinu pillai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
iam reading file line by line by buffered reader and writer
In reading following lines
<edm:OrderItem><edm:OrderItemReconciliation orderREF="1036578"></edm:OrderItem>
for the above line i can handle this way...
end5Pos = line.indexOf("\">",start5Pos);
but below line how i hndle...
<edm:OrderItem><edm:OrderItemReconciliation orderREF="1036578"/></edm:OrderItem>
if i handle above way strinindex out of bound because end 5Pos=-1.can any body please explain how handle that...
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums. It causes confusion and duplication of effort as the community tries to help everyone.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!