I've tried your code. It's only giving me 1 entry in the ItemType.txt.Quote:
This class will work... I added some things to the binary ItemType, plus I removed the new fields.
Example:
Code:
Amount=1 10654 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Code:
string Path = Directory.GetCurrentDirectory() + "\\itemtype.dat";
if (File.Exists(Path))
{
ItemType ItemType = new ItemType();
ItemType.LoadFromDat(Path);
ItemType.SaveToTxt(Directory.GetCurrentDirectory() + "\\itemtype.txt");
Console.WriteLine("Succcess!");
}
Console.ReadLine();
#Request close, managed to solve my problem thanks to LostSolder05. & thank you Korvacs, & CptSky for your resources.