Search:

Type: Posts; User: iCurtisIT

Search: Search took 0.23 seconds.

  1. Replies
    5
    Views
    2,345

    Re: Reading until a Blank Line. File input.

    Sorry if it does not make sense, I am sort of new to all of this.

    I have to do calculations with the data from the input file. The input file is laid out as:

    Shop A (Shop A)
    NoOfStaff (6)...
  2. Replies
    5
    Views
    2,345

    Re: Reading until a Blank Line. File input.

    while (inFile.hasNextDouble())
    {
    if (inFile.hasNext())
    {
    number_of_staff = inFile.nextDouble();
    hours_worked = inFile.nextDouble();
    pay_rate = inFile.nextDouble();...
  3. Replies
    5
    Views
    2,345

    Reading until a Blank Line. File input.

    Hello, I am wondering if someone can help me with a problem I have.

    I am using the hasNext() method to read from a file. I have multiple parts in the text file.

    Shop A
    NoOfStaff
    HoursWorked...
Results 1 to 3 of 3