deepika deepi wrote:I have done a coding to perform a string to be called from one file to another. Here i am trying to use the string template_no and the result of template_no should be displayed in the Foo program. i tried to get all the values existing in the template_no. But i am getting only the last value in template_no. How to get all the values of the template_no?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
not to mention a method called paint()
deepika deepi wrote:Sorry for not giving clear explanation...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
deepika deepi wrote:I am able to say what i want. But i am not able to do it programming wise. i feel difficult. i want to call a string from one method to another.
i searched in google and get some results. and tried with that. But still i have no idea to proceed. How to do that? am i wrong . In perl they use sub followed but that file name and get the result by suing an hash and for loop function.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski
Do you mean you want to pass a String from one method to another? In which case, why is there a File involved?
It appears that you want to read a String from a File, and pass it to another method; is that right?
What String (or Strings) do you want to read? Each line? A part of a line? The whole File?
Any one of those things could be put into a String object
deepika deepi wrote:ya i want to pass the string from one method to another. If i am correct it would be exactly the results of templateno (it consists of many values so i think it can be called as array.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|