RE: writing file in binary mode

2005-09-08 Thread Knight, Tommy
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Palma Sent: Thursday, September 08, 2005 10:16 AM To: activeperl@listserv.ActiveState.com Subject: Fw: writing file in binary mode Sorry, here is the part where a write to the file. The problem is i

Re: writing file in binary mode

2005-09-08 Thread pDale
On 9/8/05, Chris Snyder <[EMAIL PROTECTED]> wrote: Are you performing a chomp on each line read?  If not, then you will retainthe carriage return / line feed at the end of the data.  And if you areparsing the data, it could very well be stored in your variables. Try changing : @lines=;To:  

RE: writing file in binary mode

2005-09-08 Thread Bowie Bailey
From: Jorge Palma [mailto:[EMAIL PROTECTED] > > here is the part where a write to the file. > > The problem is it write ok, but in text mode and not in binary mode. > > Thanks > > # --- open and read all text file and put it in array > open(FileIn,"$dirBase\\PSData_21.txt"), or die; >

RE: writing file in binary mode

2005-09-08 Thread Chris Snyder
day, September 08, 2005 3:33 PM Subject: RE: writing file in binary mode > From: Jorge Palma [mailto:[EMAIL PROTECTED] >> >> Does anyone can tell me if is possible write a file in binary mode? >> I'm working in windows. >> >> I'm using the binmode func

Re: writing file in binary mode

2005-09-08 Thread pDale
On 9/8/05, Jorge Palma <[EMAIL PROTECTED]> wrote: Hi All,   Does anyone can tell me if is possible write a file in binary mode? I'm working in windows.   I'm using the binmode function but it does'nt work. The script write the file in text mode. You do realize the only affect is 'print

Re: writing file in binary mode

2005-09-08 Thread $Bill Luebkert
Jorge Palma wrote: > Hi All, > > Does anyone can tell me if is possible write a file in binary mode? > I'm working in windows. > > I'm using the binmode function but it does'nt work. The script write the > file in text mode. Not possible. Create the smallest test snippet that proves your the

Re: writing file in binary mode

2005-09-08 Thread John W. Kennedy
Jorge Palma wrote: Hi All, Does anyone can tell me if is possible write a file in binary mode? I'm working in windows. I'm using the binmode function but it does'nt work. The script write the file in text mode. Thanks for the help. What is your code? What do you expect it to do? What

RE: writing file in binary mode

2005-09-08 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Palma Sent: 08 September 2005 14:49 To: activeperl@listserv.ActiveState.com Subject: writing file in binary mode Hi All, Does anyone can tell me if is po

RE: writing file in binary mode

2005-09-08 Thread Bowie Bailey
From: Jorge Palma [mailto:[EMAIL PROTECTED] > > Does anyone can tell me if is possible write a file in binary mode? > I'm working in windows. > > I'm using the binmode function but it does'nt work. The > script write the file in text mode. It's hard to say why it's not working without seeing t