An easy way to save properties in text files using Processing language.
How to Use
·
Report Bug
·
Request Feature
Table of Contents
Easily save properties to a file using Processing language. Only java version of Processing language is supported.
- Add method createProperty("property_name", "property_value")
- Replace String[] in the constructor with just String and do splitting inside methods.
Installing Processing language is nessesary, obviously.
After you install Processing, you will need to create new sketch. You may copy Example.pde's contents in your main file or code it yourself. When this "package" is needed, just create new tab, calling it "Savings" and copying Savings.pde's contents there. That way this class may be used in your main file.
Usage example is located in src/Example.pde.
First, you will need to create new instance of Savings' class...
Savings saving = new Savings("filename.txt", split("property1 property2", " "), split("value1 value2", " "));... and setup it.
saving.setup();After that you can use setProperty to set an existing property...
saving.setProperty("property2", "new_value2");... or get it's value.
String first_property = saving.getProperty("property3");- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Twitter - @rokoel_dude
Project Link: https://github.com/rokoel/processing_savings