1

I'm making a Minecraft modpack launcher with c#. How do I get the username and password from the lastlogin file and also how to write to it?

Daniel Jones
  • 99
  • 1
  • 2
  • 9
  • possible duplicate of [How to securely save username/password (local)](http://stackoverflow.com/questions/12657792/how-to-securely-save-username-password-local) – Damith Jun 01 '13 at 04:12

1 Answers1

2

I'm the author of a project called Craft.Net, and it can do what you're looking for.

Use the Craft.Net.Client library, and you can use the Craft.Net.Client.LastLogin class to read from or write to the lastlogin file. It's MIT licensed, so you could also just pull out only the parts that you need.

Drew DeVault
  • 847
  • 9
  • 22