albertlee Posted June 2, 2004 Author Posted June 2, 2004 So, dave, is there any information on the layout about adjusting the configuration file? Albert
Dave Posted June 2, 2004 Posted June 2, 2004 Well just open one up and have a look around. Usually the layout is pretty standard and they're not hard to figure out. Just don't save any changes you make unless you either like breaking things or you know what you're doing
albertlee Posted June 2, 2004 Author Posted June 2, 2004 dave, as far as I aware, the standard and commands pretty much look like MS-DOS.. Is it related? Albert
albertlee Posted June 2, 2004 Author Posted June 2, 2004 Ummmmm... then how can the programmers know how to do configuration files for their programs? Do they all have to try on it one by one? Any way , I think there must be some tools/information about it.... Albert
Dave Posted June 2, 2004 Posted June 2, 2004 The configuration file is just a file with a pre-determined (usually by the programmer) template. It's pretty simplistic in syntax so that the function used to read the file is easy to code (and hence it's easy to store settings to disk). Windows programs tend to use the registry for this though.
albertlee Posted June 2, 2004 Author Posted June 2, 2004 OK, so, is there any information about it,still? although the syntax is easy, but the functions are too many..... One of the function I know is [autorun] which is used for burning into a CD, but I think there are plenty of them which are useful.. Can any body tell me any reference on the function of .ini files? Albert
Dave Posted June 2, 2004 Posted June 2, 2004 The file format is here: http://cloanto.com/specs/ini.html
albertlee Posted June 2, 2004 Author Posted June 2, 2004 thx, Dave, that links provide information about the syntax..... And more over, Does any one know any place to find the reference of all the functions about ini files? Albert
Fudyomo Posted June 3, 2004 Posted June 3, 2004 Are you wanting to know so you can enable/disable something, such as EAX etc or just know for the sake of knowing ? If your wanting to do something, it would be easier for us to just tell you how to do it. But I agree with everything Dave has said.
Dave Posted June 3, 2004 Posted June 3, 2004 thx' date=' Dave, that links provide information about the syntax..... And more over, [b']Does any one know any place to find the reference of all the functions about ini files?[/b] Albert There's far too many ini files hanging around windows to list what every single one does. You're better off looking at individual cases.
albertlee Posted June 3, 2004 Author Posted June 3, 2004 I mean, not to list all the ini files and tell me what are they used for... but what I want to know is, where to find the refernce about all its sections ([xxx])? in order to make/edit our own ini files which works as we want? Albert
Dave Posted June 3, 2004 Posted June 3, 2004 An INI file stores data inherant to one specific application or program. If you want to make your own INI file, then it's pretty much useless without an application to go with it.
albertlee Posted June 3, 2004 Author Posted June 3, 2004 Well then, if some one makes a program, then how can he/she makes his/her own ini file without any reference? Secondly, then which program is running for autorun.ini? Albert
Dave Posted June 3, 2004 Posted June 3, 2004 I guess a part of explorer.exe handles autorun.ini. If you want to make your own program, making an ini file is not exactly the hardest of issues. They have set format, but you basically fill in the gaps so if you read up on the format then it's pretty easy to create one.
albertlee Posted June 3, 2004 Author Posted June 3, 2004 so, where to find the set format? dave, Albert
Dave Posted June 3, 2004 Posted June 3, 2004 The file format is here: http://cloanto.com/specs/ini.html Already said it
albertlee Posted June 3, 2004 Author Posted June 3, 2004 Ok, that is what I am always asking.... although, you know the format, then how are you going to apply the format to use the function, if you dont know any section ([xxx]), then all I know is just plain syntax..... It is quite helpless really.... Any idea? Albert
Dave Posted June 3, 2004 Posted June 3, 2004 In each section [x], the programmer decides what the 'x' is, and creates variables that fit under the section. That's all there is to it.
albertlee Posted June 3, 2004 Author Posted June 3, 2004 but, when I am programming in Java, my tutor never tell me anything using Java to do ini files.... which programming language is likely using ini files? either VB or C or all the .Net programming language? Albert
Dave Posted June 3, 2004 Posted June 3, 2004 Any language can use INI files if you are prepared to write a function to parse them.
Dave Posted June 3, 2004 Posted June 3, 2004 (providing, of course, the programmming language can read a file on the filesystem)
albertlee Posted June 3, 2004 Author Posted June 3, 2004 Although I am not quite understanding that..... still, I never find a use on ini files when I am programming in Java...... Since ini files are used for configuration for applications, why applications need ini files? what is ini file really used for? Albert
Dave Posted June 3, 2004 Posted June 3, 2004 Storing settings that the application uses. For example, if you tick a box in the preferences of a program, then the program "remembers" this by saving it to an ini file.
albertlee Posted June 3, 2004 Author Posted June 3, 2004 Why then not to create a database for that? Albert
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now