Re: howto display text file as it is

2002-04-17 Thread John Kebbel
What about the xmp and /xmp tag in place of pre and /pre? > ___ > Perl-Win32-Web mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Web mailing li

RE: howto display text file as it is

2002-04-11 Thread Adam Frielink
> > I think what you looking to do is this: > > > > if (open(TXT,"< G:/Dropbox/SMatte/WebRoot/test/bs.txt")) { > > print join('',); > > close(TXT); > > } > > > > Check out the ActivePerl documentation file in > C:\Perl\Docs\ActivePerl.chm > > provided you installed Perl on your C: drive. > >

Re: howto display text file as it is

2002-04-10 Thread $Bill Luebkert
Brož Jiří wrote: > 1. Your file contains \r\r\n (\015\015\012) sequences. It occurs when a file with >"\r\n"s is read into Perl script some "binary way" and then written out in a text >mode. In text mode all "\n" are changed to "\r\n" (and so "\r\n" are changed to >"\r\r\n") Not that I saw -

Re: howto display text file as it is

2002-04-10 Thread Mike G
At 06:24 PM 04/10/2002, sunil matte wrote: >Hi all > Thanks for your suggestions.. I did write a >small snippet of code as suggested > >print "Content-type: text/plain\n\n"; > >if (open TXT1,"G:/Dropbox/SMatte/WebRoot/test/bs.txt") >) { >@array=; >print @array; >close(TXT1); >} # if >

RE: howto display text file as it is

2002-04-10 Thread Brož Jiří
" if the file is read in text mode print "Content-type: text/html\n\n"; print "$buffer"; # white spaces are preserved } HTH JB -----Original Message- From: sunil matte [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 3:24 AM To: [EMAI

Re: howto display text file as it is

2002-04-10 Thread $Bill Luebkert
Enye Software wrote: > I think what you looking to do is this: > > if (open(TXT,"< G:/Dropbox/SMatte/WebRoot/test/bs.txt")) { > print join('',); > close(TXT); > } > > Check out the ActivePerl documentation file in C:\Perl\Docs\ActivePerl.chm > provided you installed Perl on your C: drive. >

Re: howto display text file as it is

2002-04-10 Thread Enye Software
t the Perl Cookbook and Programming Perl from O'Reilly. Indespensible for newbies. - Original Message - From: "sunil matte" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 1:24 AM Subject: Re: howto display text file as it is > Hi all &

Re: howto display text file as it is

2002-04-10 Thread sunil matte
Hi all Thanks for your suggestions.. I did write a small snippet of code as suggested print "Content-type: text/plain\n\n"; if (open TXT1,"G:/Dropbox/SMatte/WebRoot/test/bs.txt") ) { @array=; print @array; close(TXT1); } # if else { print "Failed to open file\n"; } But it still do

Re: howto display text file as it is

2002-04-06 Thread Enye Software
. Ivey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 06, 2002 4:14 PM Subject: Re: howto display text file as it is > sunil matte <[EMAIL PROTECTED]> wrote: > > > But i want > > people to be able to save that file.If they do so wi

Re: howto display text file as it is

2002-04-06 Thread Keith C. Ivey
sunil matte <[EMAIL PROTECTED]> wrote: > But i want > people to be able to save that file.If they do so with > the code then they will have all the tags.so i > am just wondering if there is some other way to do > it...like writing some instruction in the file that > makes the browser to display

Re: howto display text file as it is

2002-04-06 Thread Christopher J. Crane
Yes you could change the output header to "Content-type: text/plain\n\n"; - Original Message - From: "sunil matte" <[EMAIL PROTECTED]> To: "Christopher J. Crane" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, April 06, 2002 12:

Re: howto display text file as it is

2002-04-05 Thread sunil matte
hi crane, Thanks for your reply. Yeah i can write a small snippet of code to do what u said.But i want people to be able to save that file.If they do so with the code then they will have all the tags.so i am just wondering if there is some other way to do it...like writing some