Re: WriteFile and returns...
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31956
interpreted = N
texte = Well I think we're getting closer. Actually everything is running Mac OS9.04/WebCat3.08/WebStar 4.2I took your suggestion and it fixed the problem of adding the blocks. Thank you. Butthen I figured out that maybe that wasn't my problem at all.The applet refuses to read the text file that WebCatalog writes with [writefile], butreads the same thing written with simpletext or bbedit. So, I'm thinking that thesefiles have different file creator codes. I saved two versions, one from a [writefile],and one from simpletext. I opened each in FileTyper and the [writefile] version had acreator code WWW*, and the one from simpletext had the creator code ttxt. a-Ha!So I changed the creator code on the [writefile] version with FileTyper to ttxt andbingo, it works.If I understand correctly WebCatalog writes files with this creator code (WWW*) so thatthey are protected from remote eyes (similar to WebStar). Is there a way to specify thecreator code as some sort of parameter when doing a writefile?Thanks in advance, Ken-RWKenneth Grome wrote:> So the problem is that your applet is running on a different> platform, and that platform doesn't like those little square> characters?>> First you need to determine what those little square characters are,> so you can get rid of them. They are probably nothing more than> linefeed characters. So make this special conversions database:>> from to> %0A>> Then use it like this:>> [writefile][convertchars db=specialconversions.db]> .> .> #ffffff> +Here is the scrolling text> [/convertchars][/writefile]>> >Sorry to keep dragging this out, but that doesn't work either. The> >applet has to read> >each individual line and compute the first character in order to> >know how to display> >the text of that line. It's when it finds the square character that> >the writefile puts> >into the beginning of each line (representing the return) is when> >the error occurs. If> >I open that file with a text editor and remove those blocks, but> >keep the lines> >seperated it works fine. I was just hoping to provide my client an> >easier way of> >managing their message board than writing this file manually and> >using FTP. Guess I'll> >have to either try and edit the applet, or can it.> >> >Thanks.> >> >Kenneth Grome wrote:> >> >> >Thanks, but I already tried deleting the input context and still the> >> >same results.> >> >What I'm getting at, is that I need the resulting file to look just> >> >like this....> >> >> >> >.> >> >.> >> >#ffffff> >> >+Here is the scrolling text> >> >> >> >If the applet reads this file with the return characters in front of> >> >the periods, +'s> >> >or #'s it will error out.> >>> >> Well the way you're displaying it here, the file *does* have return> >> characters in front of the periods and +'s, so you have to write it> >> without those returns:> >>> >> [writefile]..> >> #ffffff+Here is the scrolling text[/writefile]> >>> >> ================================> >> Kenneth Grome, WebDNA Consultant> >> 808-737-6499 http://webdna.net> >> ================================> >>> >> -------------------------------------------------------------> >> This message is sent to you because you are subscribed to> >> the mailing list
.> >> To unsubscribe, E-mail to: > >> To switch to the DIGEST mode, E-mail to> >>> >> Web Archive of this list is at: http://search.smithmicro.com/> >> >> >-------------------------------------------------------------> >This message is sent to you because you are subscribed to> > the mailing list .> >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to> >> >Web Archive of this list is at: http://search.smithmicro.com/>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Well I think we're getting closer. Actually everything is running Mac OS9.04/WebCat3.08/WebStar 4.2I took your suggestion and it fixed the problem of adding the blocks. Thank you. Butthen I figured out that maybe that wasn't my problem at all.The applet refuses to read the text file that WebCatalog writes with [writefile], butreads the same thing written with simpletext or bbedit. So, I'm thinking that thesefiles have different file creator codes. I saved two versions, one from a [writefile],and one from simpletext. I opened each in FileTyper and the [writefile] version had acreator code WWW*, and the one from simpletext had the creator code ttxt. a-Ha!So I changed the creator code on the [writefile] version with FileTyper to ttxt andbingo, it works.If I understand correctly WebCatalog writes files with this creator code (WWW*) so thatthey are protected from remote eyes (similar to WebStar). Is there a way to specify thecreator code as some sort of parameter when doing a writefile?Thanks in advance, Ken-RWKenneth Grome wrote:> So the problem is that your applet is running on a different> platform, and that platform doesn't like those little square> characters?>> First you need to determine what those little square characters are,> so you can get rid of them. They are probably nothing more than> linefeed characters. So make this special conversions database:>> from to> %0A>> Then use it like this:>> [writefile][convertchars db=specialconversions.db]> .> .> #ffffff> +Here is the scrolling text> [/convertchars][/writefile]>> >Sorry to keep dragging this out, but that doesn't work either. The> >applet has to read> >each individual line and compute the first character in order to> >know how to display> >the text of that line. It's when it finds the square character that> >the writefile puts> >into the beginning of each line (representing the return) is when> >the error occurs. If> >I open that file with a text editor and remove those blocks, but> >keep the lines> >seperated it works fine. I was just hoping to provide my client an> >easier way of> >managing their message board than writing this file manually and> >using FTP. Guess I'll> >have to either try and edit the applet, or can it.> >> >Thanks.> >> >Kenneth Grome wrote:> >> >> >Thanks, but I already tried deleting the input context and still the> >> >same results.> >> >What I'm getting at, is that I need the resulting file to look just> >> >like this....> >> >> >> >.> >> >.> >> >#ffffff> >> >+Here is the scrolling text> >> >> >> >If the applet reads this file with the return characters in front of> >> >the periods, +'s> >> >or #'s it will error out.> >>> >> Well the way you're displaying it here, the file *does* have return> >> characters in front of the periods and +'s, so you have to write it> >> without those returns:> >>> >> [writefile]..> >> #ffffff+Here is the scrolling text[/writefile]> >>> >> ================================> >> Kenneth Grome, WebDNA Consultant> >> 808-737-6499 http://webdna.net> >> ================================> >>> >> -------------------------------------------------------------> >> This message is sent to you because you are subscribed to> >> the mailing list .> >> To unsubscribe, E-mail to: > >> To switch to the DIGEST mode, E-mail to> >>> >> Web Archive of this list is at: http://search.smithmicro.com/> >> >> >-------------------------------------------------------------> >This message is sent to you because you are subscribed to> > the mailing list .> >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to> >> >Web Archive of this list is at: http://search.smithmicro.com/>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Robert Wade
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Chatroom (2000)
Talk Archives down? (2002)
Help name our technology! I found it (1997)
[REFERRER] bug? (1998)
NT Version on IIS 4.0 (1997)
RE: IIS4b2 and WebCatalog b19 (1997)
[WebDNA] How to code a 301 redirect (2008)
[OT] Internet connection problem (2003)
WebCatalog2 Feature Feedback (1996)
questions on variations of Ken's [text multi=T]var1=&var2=[/text] (1999)
View order not right (1997)
database files in secure folder (1997)
Help formatting search results w/ table (1997)
Summing fields (1997)
[WebDNA] Debian Lenny, Lighttpd and WebDNA FastCGI ... (2010)
Setting up shop (1997)
Where is f2? (1997)
Help with Repost Data msg from form (1997)
too many files! (2006)
Huge databases and RAM (1998)