newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on October 04, 2004, 01:14:29 PM

Title: ;; [text], [/text] tags for text longer 2048 bytes
Post by: newdep on October 04, 2004, 01:14:29 PM
Hello Lutz,



[text] seems to be enabled for 'read-file and -read-buffer also.



That way im missing the option of reading bigger files in raw data (text)

into a buffer to verify the data for i.e. "rnt"...



Files bigger then 2048 now always popup "formatted" in newlisp with [text]



Is it an option to disable/enable automatic use of [text] in 'read-file 'read-buffer...Or is there another option to bypass this using pack? perhpas?



Or is it just a visual effect?



Norman.
Title:
Post by: Lutz on October 06, 2004, 09:59:22 AM
[text], [/text] delimiters leave the text unprocessed, this way you can use it when writing newLISP server with embedded HTML, which is then processed by the function CGI:put-page, and use the tags for other purposes wher you want unprocessed text. You could write a litle (display filename) function, which displayes the text in smaller portions, so you see the encoded characters:



(define (display filename)

(print (replace "n" (read-file filename) "\n" 0)))



Lutz
Title:
Post by: newdep on October 06, 2004, 10:53:51 AM
ok thanks i see now the use of [text] in read-file/line.