reading a line in a file and setting a pointer to the value
Posted on 2004-11-02
Good afternoon, how are you all doing? I am not sure what is going on, but what I am trying to do is read a file get the string I read and set that value of the string to a pointer that is being passed to another function. For ex.
getline(file, "string in line read")
func1( z) z be pointing to the string line read. How do I do that I keep passing a empty value? What could I possibly be doing wrong? Thanks for the help.