Thread: Dilema - Fwriting

  1. #1
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198

    Dilema - Fwriting

    I have one function that initializes array elements to 0, and write it to a file.

    In a second function I overrite certain elements and then write it to file.

    The problem is, the elements which I dont alter are written to file but as junk.

    Is there anything I can do about this?

    The array is part of a struct, so I fwrite the entire struct, and I believe it is putting junk in the elements I dont alter.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  2. #2
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    Thanks, Ill give it a try, what I was about to do was if the array element had someting in it, then I know its occupied, and do nothing, else I would have put a 0, which was initally done by my setup function.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A virtual destructor dilema
    By tzakieta in forum C++ Programming
    Replies: 10
    Last Post: 09-11-2008, 09:22 AM
  2. A China Dilema, waiting for your opinion
    By childem in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 06-14-2004, 12:17 AM
  3. Installing Windows 2000 Big Dilema
    By incognito in forum Tech Board
    Replies: 15
    Last Post: 02-23-2003, 02:44 PM