Ask a Question related to Macromedia ColdFusion, Design and Development.
-
the real rob rone #1
replacing carriage returns in file
Hi,
I have a file that I want to import into excell. In order to do that it must
be delimited in some manner, because currently it is formatted for each new
line being a row. I want to replace the new lines with some other character so
that I can use it as the delimiter. I can get the file to open, to change some
things, and to write to a new file, but the replace funtion isnt doing what I
intend. I spent some time today looking for the answer, but so far I havent
found it. I have tried several variants of what I am replacing in the function,
but still nothing seems to be working correctly. Surely it is something simple
that I am overlooking. Can anyone shed some light on this for me? Thanks so
much.
<cffile action = "read" file = "C:\wwwroot\directorySample\test.txt" variable
= "fileIn">
<cfset fileOut = ReReplace(#fileIn#,"chr(10)",">","ALL")>
<cffile action="write" file="C:\wwwroot\directorySample\result.txt"
output="#fileOut#" attributes="normal">
the real rob rone Guest
-
Removing carriage returns...
Here is the code that I am using to try and remove the Carriage Returns and Line Feeds and replace them both with spaces: ... -
XML, carriage returns and special characters.
Hi, I'm trying to add dinamic content to my site using Flash and XML. Here is an example: <?xml version="1.0" encoding="utf-8"?> <PHOTOS>... -
replacing carriage returns?
so... i'm trying to remove all carriage returns in the input i get from GET, and am trying to replace them with three dots... however, this... -
Carriage returns/formatting not displayed in output.asp
Dear Colleagues: To begin with I am not a programmer. In fact, I just got all excited because I was able to create my very first .vbs script... -
Extra carriage returns - why?
John Andrews wrote: From previous post in thread: perl -pe 's/NEVERFOUND/NEVERFOUND/g' < foo > bar Hmmmmmm...I was unable to duplicate... -
the real rob rone #2
Re: replacing carriage returns in file
sorry. I found the answer. I had quotes around my chr codes. ")
<cfset fileOut = ReReplace(#fileIn#,chr(10),">","ALL")>
the real rob rone Guest



Reply With Quote

