PC Review


Reply
Thread Tools Rate Thread

squares for newline in SP3 of Win2000

 
 
Nagesh
Guest
Posts: n/a
 
      25th Aug 2003
Hi All,

From my C++ application I was generating a report and
have "\n" for having new lines in to the report. When I
make a txt file of this report, I used to get the new
lines properly when I view the report in the notepad.
After I have installed SP3 of Win2000, I start seeing a
square in place of newline when I open the txt file in the
notepad, but I don't see these squares when I open the
file in Wordpad. Is there any thing done like this in the
SP3 of Win2000?

Please reply to this query
Thanks
Nagesh.

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Aug 2003

"Nagesh" <(E-Mail Removed)> wrote in message
news:06f101c36ae4$7c6e7f90$(E-Mail Removed)...
> Hi All,
>
> From my C++ application I was generating a report and
> have "\n" for having new lines in to the report. When I
> make a txt file of this report, I used to get the new
> lines properly when I view the report in the notepad.
> After I have installed SP3 of Win2000, I start seeing a
> square in place of newline when I open the txt file in the
> notepad, but I don't see these squares when I open the
> file in Wordpad. Is there any thing done like this in the
> SP3 of Win2000?
>
> Please reply to this query
> Thanks
> Nagesh.
>


Rather than using notepad or wordpad to investigate
this issue, you should use a binary lister. The good
old list.com is an example, or debug.exe if you do
not have anything else. Under Microsoft OSs, each
line in a text file is terminated by one CR plus one
LF (or $0d + $0a in hex). What do you see?


 
Reply With Quote
 
Nagesh
Guest
Posts: n/a
 
      25th Aug 2003
Hi,

Thanks for your reply. I have used a binary lister and
noticed that when I have the Win2000 SP2 in place I see a
CR and LF (0D 0A) at the end of the line and when I have
SP3, I see a 0A 0A. I see this difference for the same
piece of code where I have used "\n\n".

Nagesh.
>-----Original Message-----
>
>"Nagesh" <(E-Mail Removed)> wrote in message
>news:06f101c36ae4$7c6e7f90$(E-Mail Removed)...
>> Hi All,
>>
>> From my C++ application I was generating a report and
>> have "\n" for having new lines in to the report. When I
>> make a txt file of this report, I used to get the new
>> lines properly when I view the report in the notepad.
>> After I have installed SP3 of Win2000, I start seeing a
>> square in place of newline when I open the txt file in

the
>> notepad, but I don't see these squares when I open the
>> file in Wordpad. Is there any thing done like this in

the
>> SP3 of Win2000?
>>
>> Please reply to this query
>> Thanks
>> Nagesh.
>>

>
>Rather than using notepad or wordpad to investigate
>this issue, you should use a binary lister. The good
>old list.com is an example, or debug.exe if you do
>not have anything else. Under Microsoft OSs, each
>line in a text file is terminated by one CR plus one
>LF (or $0d + $0a in hex). What do you see?
>
>
>.
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Aug 2003
It seems notepad.exe is doing the right thing - it tells you
that you do not have CRLFs at the end of your line. The
issue is with your code, and how "\n\n" is compiled
under SP3. I recommend you repost your item in a
newsgroup that focuses on the compiler you use.


"Nagesh" <(E-Mail Removed)> wrote in message
news:095601c36b03$63d7b220$(E-Mail Removed)...
> Hi,
>
> Thanks for your reply. I have used a binary lister and
> noticed that when I have the Win2000 SP2 in place I see a
> CR and LF (0D 0A) at the end of the line and when I have
> SP3, I see a 0A 0A. I see this difference for the same
> piece of code where I have used "\n\n".
>
> Nagesh.
> >-----Original Message-----
> >
> >"Nagesh" <(E-Mail Removed)> wrote in message
> >news:06f101c36ae4$7c6e7f90$(E-Mail Removed)...
> >> Hi All,
> >>
> >> From my C++ application I was generating a report and
> >> have "\n" for having new lines in to the report. When I
> >> make a txt file of this report, I used to get the new
> >> lines properly when I view the report in the notepad.
> >> After I have installed SP3 of Win2000, I start seeing a
> >> square in place of newline when I open the txt file in

> the
> >> notepad, but I don't see these squares when I open the
> >> file in Wordpad. Is there any thing done like this in

> the
> >> SP3 of Win2000?
> >>
> >> Please reply to this query
> >> Thanks
> >> Nagesh.
> >>

> >
> >Rather than using notepad or wordpad to investigate
> >this issue, you should use a binary lister. The good
> >old list.com is an example, or debug.exe if you do
> >not have anything else. Under Microsoft OSs, each
> >line in a text file is terminated by one CR plus one
> >LF (or $0d + $0a in hex). What do you see?
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newline Tree*Rat Microsoft Excel New Users 9 21st Oct 2008 06:19 PM
Group Policy not updating on all workstations (Win2000 SP4 clients/Win2000 and 2003 DCs) phsieh80@hotmail.com Microsoft Windows 2000 Group Policy 0 9th Nov 2005 04:23 PM
Group Policy not updating on all workstations (Win2000 SP4 clients/Win2000 and 2003 DCs) phsieh80@hotmail.com Microsoft Windows 2000 Group Policy 0 9th Nov 2005 04:23 PM
removing squares and lines in squares that really should be paragr =?Utf-8?B?ZmlubmFkYXQ=?= Microsoft Excel Misc 5 11th Feb 2005 12:12 AM
Read/Write access problem with a file on Win2000 Server from Win2000 Workstation Greg Doherty Microsoft Windows 2000 Security 3 6th Apr 2004 02:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 PM.