hi... i need to write a converter to convert the text file to a binary file with the following file format...
CharacterCount:Unsigned Char(This stores the number of characters that is in the file)
Name:Char[256](An array of 256 char that stores the name of the character. You will need to prompt the user if the name given in the text file is longer than the maximum length it can hold)
Weapon:Unsigned Short(Uses a single 16bit data type to store the weapon that is valid for the character. )The value are predefined as such
Knife 1
Shotgun 2
Machinegun 4
Grenade 8
Flashbang 16
Mine 32
Life:Unsigned char(A single unsigned char value that stores the health point value of the character)
MovingSpeed:float(A single float value that stores the moving speed of the character)