BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

java.lang.StringIndexOutOfBoundsException: String index out

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Dec 27, 2006 9:13 am    Post subject: java.lang.StringIndexOutOfBoundsException: String index out Reply with quote



hi
I have the problem in following code. The error already notified in
subject. Do needfull for ours.

public void ReadFile(String sFileName)
{
String inputLine = sFileName;
try
{
FileReader fr = new FileReader(inputLine);
BufferedReader is = new BufferedReader(fr);
while ((inputLine = is.readLine())!= null)
{
s += inputLine+"~";
}
PdfPrint(s);
fr.close();
is.close();
}
catch (IOException e)
{
System.out.println("IOException: " + e);
}
}
Thanks

krishna.v
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Wed Dec 27, 2006 7:24 pm    Post subject: Re: java.lang.StringIndexOutOfBoundsException: String index Reply with quote



moorthymvk (AT) gmail (DOT) com wrote:

Quote:
I have the problem in following code. The error already notified in
subject. Do needfull for ours.

In order to determine where the error resides, we'd have to see a complete
stack trace. At a guess, it's occurring in the PdfPrint() method, because
there's nothing in the code you've posted that would generate that
exception.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.