Best method to store files ?

Hello Im making a trading card game.

What would be the best way to store the decks my user created?

  • Database (mysql) but needs sql server
  • Txt file, hard to read/write.
  • XML (Couldnt get it work)
  • Other ways? ...

Thanks

Without knowing what type of data it is (exactly), it's hard to say.

You'd probably be best off using a file or series of files, and using the Application.dataPath property to know where to read and write your files to (excluding the web player).

And I'm not sure how you think a text file is "hard to read and write"...? Just use the File.ReadAllText method to read the file into a string, and then use its corresponding method, File.WriteAllText(), to write the text back to the file.

What is a trading card game without opponents? Where do opponents come from if not the internet, Do yourself a favor and learn / setup the MySQL database now. You don't have to buy one from the internet or anything, just run one locally using an easy web host kit like XAMPP or WAMP.

MySQL isn't as complex as it seems.