Quote:
Originally Posted by CptSky
This class will work... I added some things to the binary ItemType, plus I removed the new fields.
|
I've tried your code. It's only giving me 1 entry in the ItemType.txt.
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
Here's the code I've attempted to use.
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();
Any solutions? Attached below is the itemtype.dat
#Request close, managed to solve my problem thanks to LostSolder05. & thank you Korvacs, & CptSky for your resources.