2 Replies - 163 Views - Last Post: 20 September 2012 - 03:31 PM Rate Topic: -----

#1 Marmy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-September 12

Quiz From Java

Posted 20 September 2012 - 02:35 PM

I have to make quiz in java, it must scan txt file where is answers and I dont know do it? Can anybody help me?
Is This A Good Question/Topic? 0
  • +

Replies To: Quiz From Java

#2 cfoley  Icon User is offline

  • Cabbage
  • member icon

Reputation: 1501
  • View blog
  • Posts: 3,212
  • Joined: 11-December 07

Re: Quiz From Java

Posted 20 September 2012 - 03:08 PM

We certainly can help but we won't do it for you. Show us what you already have and point to the bit you are stuck with. If you have never read from a file before, you can do it with a Scanner which makes it similar to reading input from the console.
Was This Post Helpful? 0
  • +
  • -

#3 The_Programmer-  Icon User is offline

  • Death Scythe
  • member icon

Reputation: 23
  • View blog
  • Posts: 560
  • Joined: 24-October 11

Re: Quiz From Java

Posted 20 September 2012 - 03:31 PM

Take a look at the Scanner class at http://docs.oracle.c...ase/6/docs/api/

It's pretty simple to use.

A simple search on Google brought this result: Scanning text on java.util.Scanner
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1