The Artima Developer Community
Sponsored Link

Java Answers Forum
how to use read(char[],off,len)?

1 reply on 1 page. Most recent reply: Aug 17, 2003 6:41 AM by David

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
aj3423 aj

Posts: 16
Nickname: aj3423
Registered: Aug, 2003

how to use read(char[],off,len)? Posted: Aug 16, 2003 10:45 AM
Reply to this message Reply
Advertisement
FileReader fis = new FileReader(theFile);
BufferedReader in = new BufferedReader(fis);
char[] tempChars = new char[5];
//i want to read the first 5 characters into tempChars,is the code below right ?
in.read(tempChars,0,5);


David

Posts: 18
Nickname: malven
Registered: Jul, 2003

Re: how to use read(char[],off,len)? Posted: Aug 17, 2003 6:41 AM
Reply to this message Reply
What happened when you tried it?

Flat View: This topic has 1 reply on 1 page
Topic: Random pages in Java Previous Topic   Next Topic Topic: How to make non-blocking soap.rpc.call in Java?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use