I have a few questions about saving, I am on a mac.
For number one, how do I make a file in Application Support
Two, how do I actually save?
And three, how do load
Help with saving files
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Help with saving files
Please check the Wiki under the filesystem section. It's a very simple thing to do.
http://www.love2d.org/wiki/love.filesystem
There's information on how to use all the filesystem commands in there. They're extremely easy to use.
http://www.love2d.org/wiki/love.filesystem
There's information on how to use all the filesystem commands in there. They're extremely easy to use.
Re: Help with saving files
I looked at that and it didn't help
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Help with saving files
How did it not help? What exactly have you tried so far? It's pretty general stuff if you already know how to do most of the other Löve stuff.
Are you trying to save data from within Löve? Or are you asking how to create your .lua files?
Are you trying to save data from within Löve? Or are you asking how to create your .lua files?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Help with saving files
To read a file:
To write a file:
Code: Select all
stringwithcontents = love.filesystem.read("filename.txt")
Code: Select all
love.filesystem.write("filename.txt", stringwithcontents)
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 6 guests