I am new to Java and is working on code in java which i need to keep a static sql script in property file and passing variable to it through java code and then iterating that property file to pass the variable value and writing that generated script to a text file in specific path producing a sql script.

Can anyone help,its urgent.I am using eclipse hellios if that make a differnece.

Thanks in advance!

Eclipse flavour shouldn't make any difference.
Generally, you would just create the config file by right-clicking your file tree then File >> New >> and giving the newly file a .properties extension.

From there you can read and write to it as it was a Bean.

Ask if anything is not clear.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.