Viewer Mail #2

I received an email a couple days ago and I have been trying to figure out how to approach it, until now.

Hey man,

I am new to coding, obviously, and I love your tutorials on hl2, but I have this distinct feeling that I’m missing something. I coded in VB for a while and it was a lot of fun to see what I was able to do with a few nouns and verbs, talk about words in action, but there was something that has always blown my mind, and I figured I would bounce it off of you. So here goes bro.

When I was in class a couple nights ago we went over random access files, which are neat in their own right, but since I ran into that I have been trying to figure out a file type to use for my own application. The values are going to have to be user editable/readable, but what are some of the options for it?

Thanks a bunch and keep up the good work!
Adam.

Thanks a bunch to you too, I love these types of emails because it allows me to show you where I shine. File/string parsing is one of my strong suit, and it is very interesting that you have come to me at this point in time because I just finished reading about some new techniques and had put them to use in the weapon manager utility that I released a few weeks ago.

There are a lot of considerations for what you are trying to do, the most significant of them is the language you are using to handle your files, I don’t know what you are working with but I will take some time in the next couple days to write up something on what the options are for a given language, and unless anyone says otherwise ill be listing PHP, Perl, C/C++ and C# (VB and C# have identical options. I will even show you the code you would use for each to read the file in.

Anyways, I’m off to work again, take it easy folks…

PS. For those who are interested in emailing me please send your mail to bob@gneu.org and note that not everyone gets the public fanfare but i do answer all emails.

Leave a Reply