![]() |
Saving an Arraylist - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Help Wanted (https://mirage-engine.uk/forums/forumdisplay.php?fid=50) +---- Thread: Saving an Arraylist (/showthread.php?tid=2471) |
Saving an Arraylist - Yoshiko - 03-01-2009 Where else could I ask? Hello. I'm currently using VB.NET for a small project I have interest on. I have created which is a "basic" equipment and inventory window, my next step is creating the shop window, which I can't do until I'm done with the save/load system. The save/load system here is essencially important, since I pretend to let the players create their own items, so to accomplish it, I'm using an ArrayList, which as base has 1 string and 1 integer-type array. The problem is that I don't find a way to save the full Arraylist, since, I got to admit, I'm not used enough into save/load programming (I was a .ini bitch back on VB6). Speaking about VB6, I would use it, but I pretty much don't have it (instead, I already had Visual C++, C#, and VB.NET installed, which this last one was my choose since I'm not confident enough with the C family). Code: SaveGame.Add("MyPlayerName") All those are defined. It currently creates the file, but doesn't really write inside it. Ideas? PD: I'm using some functions I found on the internet, licenseless: Code: Public Sub SaveArrayList(ByVal path As String, ByVal arrayList As ArrayList) Re: Saving an Arraylist - Yoshiko - 03-01-2009 Lea Wrote:VB.Net has built in serialization features, just like I suspected because VB.Net is like java.Thanks, loads. *hugs* ^w^ |