Click to See Complete Forum and Search --> : Linefeed character truncates the data in WritePrivateProfileString


April 17th, 2000, 06:30 AM
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

Crazy D
April 17th, 2000, 08:46 AM
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"

April 18th, 2000, 01:39 AM
But in that case how to take care if the same character is actually there , I mean it will inadvertently get replaced by linefeed