Removing a line from a file

Discussion in 'Plugin Development' started by iPhysX, Apr 6, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    iPhysX

    I have a hashmap printing users professions to a file, i can get them to change their profession by /prof reset.
    and this allows them to change their profession, but i need the /prof reset to remove their line from the text file!

    I'm failing with this :/
     
  2. Offline

    Bubby4j

    I would suggest opening the file and just doing a replace()
     
  3. Offline

    iPhysX

    sure! Thanks :D
     
  4. Offline

    Sammy

  5. Offline

    iPhysX

    I managed to do it by writing "" <---
    But thanks ill give that a look!
     
  6. Offline

    Sammy

    Well you can use an buffer and iterate to all the lines, imo properties class makes everything easier and quicker :)
     
  7. Offline

    iPhysX

    Ill look into it, maybe ill change things!
     
Thread Status:
Not open for further replies.

Share This Page