Reading input from a file

This is a discussion on Reading input from a file within the C Programming forums, part of the General Programming Boards category; I am having problems getting my integer and float values to print from a file. My headings and string data ...

  1. #1
    Unregistered
    Guest

    Cool Reading input from a file

    I am having problems getting my integer and float values to print from a file. My headings and string data show up, but my numeric data is wrong. Help!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Let me use my "Psychic-Coder-Link(TM)" to see your code and tell you what's wrong...

    Damn. Didn't work. Perhaps if you posted some of it my PCL(TM) would work better?

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User PutoAmo's Avatar
    Join Date
    Mar 2002
    Posts
    72
    It would be easier for us to find a bug in your program if we just could take a look at it

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    I'm considering changing my avatar back to the crystal ball. Everyone seems to think we're psychic we might as well try to look like it.

    >I am having problems getting my integer and float values to print from a file
    Are you formatting it correctly when you read it?

    -Prelude
    My best code is written with the delete key.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    > I'm considering changing my avatar back to the crystal ball.
    > Everyone seems to think we're psychic we might as well try to
    > look like it.

    I'll change mine to some tarot cards then...
    Anyone want to be the magic wand? Tea leaves? Chicken bones?

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 06:27 AM
  2. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21