C# Programming class - Property reader and writer!

  • Thread starter XabiPlayerPRO
  • Start date
  • Views 870
  • Replies 1
X

XabiPlayerPRO

Guest
OP
Here, I bring you a great extension for your programs. With it, you can edit .properties files almost like in Java. Here, I´ll show you how to use it:

Property P = new Property();


As you can see, we create and set it so simply.

P.setFileRoute(ROUTE);


With this method, you add the path/route of the file (without this, you can´t do anything with the property).

P.setProperty(VALUE, KEY);


With this method you add a property value/name and its value to the file, or if it doesn´t exist, it´ll create a new one with this elements.

P.getPropertyValue(LINE);

P.getPropertyKey(LINE);


With this methods, you can get the value or the key of a line chosen from the file.

IMPORTANT - Line counting doesn´t go like this: 1,2,3,4...

It goes like this - 0,1,2,3,4... (In programming it starts from 0).

I hope you like this extension / class!
 

Attachments

  • C#PropertyClass.zip
    551 bytes · Views: 206
Last edited by ,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Purple_Heart @ Purple_Heart: his dad is a db fan and he just laugh lmao