5 Replies - 1768 Views - Last Post: 06 May 2005 - 08:06 AM Rate Topic: -----

#1 BlackJesus  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 161
  • Joined: 10-February 05

Reading Input

Posted 05 May 2005 - 11:54 AM

Ok so i was wondering if anyone knows how to read input from a file.

i was thinking something like this...

int blah;
blah = File.readInt();

basically instead of using Keyboard.readInt();
you just use the file name that you are using for input...just my thought tho

so if anyone knows how to really do it then any help would gladly be appreciated. >_<

Is This A Good Question/Topic? 0
  • +

Replies To: Reading Input

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Reading Input

Posted 05 May 2005 - 12:01 PM

Here's a quick overview of using the FileWriter and FlieReader classes.
Was This Post Helpful? 0
  • +
  • -

#3 BlackJesus  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 161
  • Joined: 10-February 05

Re: Reading Input

Posted 05 May 2005 - 03:32 PM

thanks. i think that will help. just a quick question though: do you have an answer to everything?
Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Reading Input

Posted 05 May 2005 - 06:23 PM

It was not done by me, it was done through me. :) :)

Actually, no, I don't. I don't know much, I'm afraid, and most think I talk too much...but I have been around the code game for a couple of years, so I've picked up some stuff here and there. Hell, half of it's probably wrong anyway! :)
Was This Post Helpful? 0
  • +
  • -

#5 BlackJesus  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 161
  • Joined: 10-February 05

Re: Reading Input

Posted 05 May 2005 - 07:55 PM

lol...well i think you give good answers
Was This Post Helpful? 0
  • +
  • -

#6 WolfCoder  Icon User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 784
  • View blog
  • Posts: 7,613
  • Joined: 05-May 05

Re: Reading Input

Posted 06 May 2005 - 08:06 AM

It's because he's a genius.
How did you become a genius?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1