Skip to content

Rokoel/processing_savings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation


Processing-Savings

An easy way to save properties in text files using Processing language.
How to Use · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Easily save properties to a file using Processing language. Only java version of Processing language is supported.

Built With

TODO

  • Add method createProperty("property_name", "property_value")
  • Replace String[] in the constructor with just String and do splitting inside methods.

Getting Started

Prerequisites

Installing Processing language is nessesary, obviously.

Installation

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

Usage example is located in src/Example.pde.

Intended usage

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");

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Twitter - @rokoel_dude

Project Link: https://github.com/rokoel/processing_savings

About

Easily save properties to a file using Processing language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors