Raised This Month: $ Target: $400
 0% 

File Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flynn
Senior Member
Join Date: Sep 2009
Old 09-26-2009 , 15:15   Re: File Help
Reply With Quote #1

Quote:
Originally Posted by javalia View Post
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.

Last edited by Flynn; 09-26-2009 at 15:18.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 09-27-2009 , 02:34   Re: File Help
Reply With Quote #2

Quote:
Originally Posted by Flynn View Post
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.
i am sorry. i agree my comment was bad. sorry.
javalia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode