Hi..!! I was creating a program but now i am stuck. Please help me. I want to read from .txt file. Contents of txt file :- 1)number- no. of lines 2)line 1 3)line 2 and so on I want to read this file line by line and save in string str[n] First line will give me integer value n; then rest of lines should be stored in str[1],str[2] and so on.. I tried to do this using null character but not working. Please help me.
char *mystring[]; mystring = new char[][n]; Not sure if that works, try it. I know without [] it will work thou. Peace,
char *mystring[]; mystring = new char[][n]; Not sure if that works, try it. I know without [] it will work thou. Peace,