Originally posted by Sashidhar Rao Gopisetty:
now i have to call the file x.sql file in the code and execute the script in that file at once, in the function i will take two parameters one properties file name two sql file name.(this is what i dont know)
please send me any code snippet matching this requirement
I agree with Joel that this is an I/O question, so I am moving it to our I/O forum.
For some examples of how to read a file, take a look at Sun's
I/O tutorial.