Login Register


[C#] Virtual21 - 21 Game Simulator filter_list
Author
Message
RE: [C#] Virtual21 - 21 Game Simulator #5
(09-23-2016, 12:17 PM)Bish0pQ Wrote: Looks pretty good already, would be interesting to see how this turns out.

For what you asked and saving the data, you could link to an online Access or SQL database?
Or you can create a directory in the same directory as the file is ran from. I don't know what it is exactly in C# but in VB.NET it would be

Code:
Dim strStartupPath as String = My.Application.Info.DirectoryPath & "\Foldername\" If Directory.Exists(strStartupPath) = True Then '## Do something Else Directory.Create(strStartupPath) End if
I would have considered SQL but as of now I have no web servers to run a database on to store information so I'm only thinking locally as of now.

(09-23-2016, 01:27 PM)hybris.softwares Wrote: you could create a json file to store settings, and save it as "settings.json" inside the program folder.

Use this library to handle json : http://www.newtonsoft.com/json

Regards,
Hybris
I'll check that out in the morning, thanks!

I've also had pointed out to me about the random being initialized each button press and that has been fixed.

Reply





Messages In This Thread
RE: [C#] Virtual21 - 21 Game Simulator - by VirtualFrost - 09-23-2016, 02:38 PM



Users browsing this thread: 1 Guest(s)