Linefeed character truncates the data in WritePrivateProfileString
I am using WritePrivateProfileString to store some character data.Now if the string to be stored contains Line Feed (Chr$(10)) character then WritePrivateProfileString terminates the string and stores characters upto chr$(10) in the ini file.Is there any way of storing line feed characters in an ini file using WritePrivateProfileString
Re: Linefeed character truncates the data in WritePrivateProfileString
afaik you can't, but you can replace a vbcrlf with another char, and when reading the ini file, change it back
Crazy D :-)
"One ring rules them all"
Re: Linefeed character truncates the data in WritePrivateProfileString
But in that case how to take care if the same character is actually there , I mean it will inadvertently get replaced by linefeed