C# Programming class - Property reader and writer!

Discussion in 'Computer Programming, Emulation, and Game Modding' started by XabiPlayerPRO, Feb 4, 2017.

  1. XabiPlayerPRO
    OP

    XabiPlayerPRO Newbie

    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!
     

    Attached Files:

    Last edited Feb 4, 2017
  2. rikumax25!

    rikumax25! Keyblade Wielder

    Member
    4
    Apr 21, 2016
    Costa Rica
    Nice!, pretty useful
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice