Formatting ASCII to be read by Windows NotePad
- From: UnRiel <bdwhite@xxxxxxxxx>
- Date: Thu, 3 Jul 2008 14:02:36 -0700 (PDT)
I have a nice PERL script I use to generate CISCO configurations, but
when I FTP the files to my Windows XP PC and try to read them in
Notepad, there is clearly no line wrap that Notepad understands. If I
otherwise read the file into WordPad first, save the file, then open
into Notepad, the formatting presents correctly.
I have generated the ASCII files using a simple 'print' command to a
file I generate using an 'open' command. I have tried both the newline
\n and the carriage return \r format characters.
Before I begin experiment with other characters, does anyone have a
solution for me gained from similar experience?
Thanks!
.
- Follow-Ups:
- Re: Formatting ASCII to be read by Windows NotePad
- From: Sherman Pendley
- Re: Formatting ASCII to be read by Windows NotePad
- From: RedGrittyBrick
- Re: Formatting ASCII to be read by Windows NotePad
- Prev by Date: Threads don't seem to work as advertised
- Next by Date: Re: Formatting ASCII to be read by Windows NotePad
- Previous by thread: Threads don't seem to work as advertised
- Next by thread: Re: Formatting ASCII to be read by Windows NotePad
- Index(es):
Relevant Pages
|