The Artima Developer Community
Sponsored Link

Java Answers Forum
Using BasicFileReader with text file, please help

1 reply on 1 page. Most recent reply: Jun 16, 2002 9:13 PM by Charles Bell

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
Wilson Ip

Posts: 1
Nickname: xenoss
Registered: Jun, 2002

Using BasicFileReader with text file, please help Posted: Jun 13, 2002 7:26 PM
Reply to this message Reply
Advertisement
I want to use BasicFileReader with a txt file as the input stream. the file is called data.txt, in the same dir as the program (and other classes).

input = new BasicFileReader (data.txt);

(at the bottom)
private OOJ.basicIO.BasicFileReader input;
(the BasicFileReader class is in the correct dir)

but it just doesnt compile. Can someone please help me on this, tell me what I do wrong and the correct way to do this?

Thank you for your time.


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Using BasicFileReader with text file, please help Posted: Jun 16, 2002 9:13 PM
Reply to this message Reply

change
input = new BasicFileReader (data.txt);
to
input = new OOJ.basicIO.BasicFileReader (data.txt);

Flat View: This topic has 1 reply on 1 page
Topic: convert to Int Previous Topic   Next Topic Topic: Jump and Skip Program(Does Not Work)

Sponsored Links



Google
  Web Artima.com   

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