The Artima Developer Community
Sponsored Link

Java Answers Forum
End of file

1 reply on 1 page. Most recent reply: Apr 3, 2002 5:32 AM by Jay Kandy

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
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

End of file Posted: Apr 2, 2002 2:29 PM
Reply to this message Reply
Advertisement
hello...


what is the wrong of this statment

String s=null;
while ((s=file.readUTF())!=null)

assuming file is randomaccessfile.

what is the eof i must use when using readUTF()

please help.


thanks alot


Jay Kandy

Posts: 77
Nickname: jay
Registered: Mar, 2002

Re: End of file Posted: Apr 3, 2002 5:32 AM
Reply to this message Reply
> what is the wrong of this statment
>
> String s=null;
> while ((s=file.readUTF())!=null)

s is already assigned null !! :)

String s; should do fine.

-Jay

Flat View: This topic has 1 reply on 1 page
Topic: 1st year degree assignment need help??? Previous Topic   Next Topic Topic: anyone familiar with domain nam registration?

Sponsored Links



Google
  Web Artima.com   

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