Sorry, yes its cffile...... it was...... <cffile action="write" file="#request.apppath#/pollresults.txt" variable="resultlist">
it is now....... <cffile action="write" addnewline="no" file="#request.apppath#/pollresults.txt" variable="resultlist"> It is working fine now. Since the default for addnewline is YES I don't see why it was overwriting the original numbers then adding a few of these strange chars on the same line then adding more to the next line. That was a strange one. Just out of curiosity I'd like to know why this was happening. Thanks for your eyes : ) I look forward to using them on some of my future dumb mistakes. heh ----- Original Message ----- From: "brook" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, July 21, 2002 9:25 PM Subject: Re: Pesky characters in my text file > Have you tried addnewline="no" in the cffile tag? Actually, ARE you using > CFFILE, because your email says CFDIRECTORY and CFHTTP only? > > bd > > At 09:00 PM 7/21/02 -0400, you wrote: > >Hola lista!! > > > > > > > >I'm experimenting with trying to make an entire site running only off of > >cfdirectory, and building static templates with CFHTTP where possible (yeah > >I have a lot of spare time). Anyhow, I have a poll that stores the results > >as a comma delimited list in a .txt file > > > > > > > >total > > > >first choice total > > > >second choice total > > > >third choice total > > > >100,50,48,2 > > > > > > > >I set them to vars... > > > ><cfset total = listgetat(list, 1, ",")> > > > ><cfset first = listgetat(list, 1, ",")> > > > >and so on..... > > > > > > > >then I add 1 to the total and depending on which choice was made I add 1 to > >the correct position and reinsert it to the .txt file and use the vars for > >display. Everything sets and displays fine. No weird characters or extra > >spaces. > > > > > > > >The process started getting kind of slow so I opened the .txt in notepad to > >see that with each submission it resets the list to the new values but then > >it adds a bunch of these little square characters > > > >(I tried to paste about 5 of the squares here and it made about 5000000 > >carriage returns) heh > > > > > > > >I tried it as a .cfm (don't know why) but it does the same thing. Then I > >tried deleting the file and recreating it with each submission and they are > >STILL there, like little cucarachas eating up my precious space!! > > > > > > > >Anybody know what they are or why they are being added to the text file and > >how I can stop it??? > > > > > > > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

