Quote:
Originally Posted by javalia
i wanna say just see file functions of sourcemod....
|
Not a very helpful comment if you're a coder with not a lot of knowledge of how file operations work (which is more likely than not if you're modding). I personally knew little about it until recently this year when I completed the Systems Programming module. And that topic is vast; the book that covers it is bigger than the original C++ book.
On the lowest level it's more than simply opening a file and writing to it (access rights, write permissions, setting the neccessary bitflags for operations, forking the process correctly for writing, opening a link to that file to feed the information into, ensuring that the information is flushed from the buffer onto the disk, closing the link, ensuring the file is freed up so it doesn't appear 'read-only' or 'in-use' etc). I am sure there is more (and I am doubly sure someone will correct me or add to it) but thats off the top of my head.
On the higher levels, even with such functions simplified it does not instantly produce a solution to all the problems specified. Even with a base understanding of file operations you would only be able to do writing, reading and entire file deletion (no editing, deletion of specific lines, or retrieving specific information) without knowing how file operations on the lower levels works (for example, why you can't just 'edit out' data).
I've finished ranting at you, but personally speaking, if I was a coder and I was seeking help I'd be offended by your given comment; not only is it unhelpful, but it's degrading to the person asking by implying they are too stupid and lazy to look and discouraging to any new modders wanting to seek help. I think you sir, of all people, should check the file functions (and see they do not provide the requested functionality!) before you start making smart-alec comments.