Search:

Type: Posts; User: m_programmer

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,258

    so i fixed those errors,, but i still get the...

    so i fixed those errors,, but i still get the following outputs for an input file that contains the data:
    real 5.5
    integer 2
    character c

    OUTPUT:
    Number of Lines: 3
    eal 5.500000
    Invalid!...
  2. Replies
    8
    Views
    1,258

    @qny, thanks that worked... but nowww when i run...

    @qny, thanks that worked... but nowww when i run the program with a file like this:
    real 5.5
    integer 2
    character c

    i get an output something like this:
    Number of Lines: 3
    eal 0
    Invalid!...
  3. Replies
    8
    Views
    1,258

    reading a file

    hi,
    i have a struct that holds variables of different data types. i am trying to read the first character of data from a data file and store the data into the struct..

    the file holds data like...
Results 1 to 3 of 3