Groups | Blog | Home
all groups > dotnet windows forms > june 2005 >

dotnet windows forms : special line feed character appear in notepad - windows form - c sharp


Morten Wennevik
6/13/2005 12:00:00 AM
Solo, please don't multipost. If you absolutely need to, crosspost instead.

See my reply to this question in the Framework group.

PS! access the newsgroups directly using

nntp://msnews.microsoft.com


[quoted text, click to view]



--
Happy coding!
solo h via DotNetMonster.com
6/13/2005 11:34:56 AM
hello members,
i m using windows form c#
using follwoing code

StreamWriter sw = new StreamWriter(new FileStream(@"c:\anyTextFile.txt",
FileMode.Append));
sw.WriteLine("this is test text \n now from here is next line");
sw.Flush();
sw.Close();

i m trying to write a simple text file, when i open that file in any text pad
it shows data as follow

//**
this is test text
now from here is next line
**//

but when i open that file in windows notepad it shows data as follow

//**
this is test text ? now from here is next line
**//

that is theres sum square box inplace of linefeed,
i want if i open same file in notepad it shows same as of textpad, why it is
not showing, how to overcum that .

regards..

--
Message posted via DotNetMonster.com
AddThis Social Bookmark Button