Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi my friends

I have a training cd of java , there is an ini file in the root of this cd.

This file contains this syntax :

[.ShellClassInfo]
InfoTip=Contains portable app files and application data.
IconFile=.\PortableApps.com\App\DefaultData\FolderIcons\portableapps.ico
IconIndex=0


Is this a language like vb or c#?
How can i use that in c#??

In other word , what is ini files and where can i use them in programming?

Is there any full reference in msdn or any where else to learn?

Please guide me.

Thanks in Advance.
Posted
Updated 6-Jul-11 18:53pm
v6

Hi,

it does not have a connection with java.It mention about the display characteristics
regards,
shefeek
 
Share this answer
 
Comments
a.bolandnataj106 7-Jul-11 0:56am    
i know that , it is not refer to java , My question is that what is this language? and what are ini and inf files ? is there any reference about that?
shefeekcm 7-Jul-11 1:04am    
An .ini file is a text file with groups of keywords and variables. They were the way programs stored their configuration information before the Windows Registry came along. They're still fairly useful. For one thing, if the Registry goes south, the .ini file information is still intact. For another, unlike the Registry, no special tool is needed to edit it. Any text editor will do.

Here's part of a Quicken .ini file:

[Configuration]
InstallPath=C:\Program Files\QUICKENW-BUS\
SrcRoot=G:\
SrcDir=G:\disk1\
WinDir=C:\WINDOWS\
TargetDir=C:\Program Files\QUICKENW-BUS\
DesktopPath=C:\Documents and Settings\All Users\Desktop\
ProgramsPath=C:\Documents and Settings\All Users\Start Menu\Programs\
SupportDir=C:\DOCUME~1\User1\LOCALS~1\…

[MarketingMessages]
Splash=
SplashExpired=1

[AFS]
PROD_KEY=CDWQHB04G

[Business]
MASAccount=0

Each [---] defines a group, and the lines below it define a keyword and possibly its value.
a.bolandnataj106 7-Jul-11 1:32am    
Thanks
Hope this[^] might help you.
 
Share this answer
 
Comments
a.bolandnataj106 7-Jul-11 1:03am    
thanks ramalinga
[no name] 7-Jul-11 1:08am    
It's my pleasure.
Where is ini file in your post, those are icon file in windows that you have mentioned.
Ini files are not programs they just store config data.
you can read them in any language.

Find the CP article on handling ini file in C#(as you have tagged C#)

An INI file handling class using C#[^]
 
Share this answer
 
Comments
a.bolandnataj106 7-Jul-11 1:13am    
thanks harish , that was good
harish85 7-Jul-11 1:20am    
you are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900