S
SRK
Hi folks,
I am trying to read some data from a config file and want that data to
be stored in a variable such that when I print it, it should print the
string in a formatted way, for example if I have this string in the
config file - ABC PQR XYZ in one line and want to display it like
ABC
PQR
XYZ
for that I have put the above mentioned string as ABC \nPQR \nXYZ.
But instead of displaying the string in formatted way, when I print
the data, it prints as ABC \nPQR \nXYZ. I am using FILE pointer for
reading from the file and reading the line using fgets method.
Any help would be highly appriciated.
Thanks
SRK
I am trying to read some data from a config file and want that data to
be stored in a variable such that when I print it, it should print the
string in a formatted way, for example if I have this string in the
config file - ABC PQR XYZ in one line and want to display it like
ABC
PQR
XYZ
for that I have put the above mentioned string as ABC \nPQR \nXYZ.
But instead of displaying the string in formatted way, when I print
the data, it prints as ABC \nPQR \nXYZ. I am using FILE pointer for
reading from the file and reading the line using fgets method.
Any help would be highly appriciated.
Thanks
SRK