Writing data to file

Status
Not open for further replies.

Darius Blaszijk

Usenet Archive
Joined
Dec 24, 2001
Messages
5
Reaction score
0
Hello there,

I would like to write data to an output file, only when I write a string I also get quote marks. How can I ommit this?? I want my output to be like this:

text,10,100

How do I make sure this is done the way I want to?? The data is delivered in three variables.

Many thanks, Darius Blaszijk
 
Like this
(setq ll (0 1 2 3 4))
U want to change to 0,1,2,3,4
(setq num (length ll))
(setq i 1)
(setq aa (itoa (car ll)))
(repeat (- num 1)
(setq a (nth i ll))
(setq aa (strcat aa "," (itoa a)))
(setq i (1+ i))
)
(setq aa (strcat aa
"Darius Blaszijk" wrote:

Hello there,

I would like to write data to an output file, only when I write a string I also get quote marks. How can I ommit this?? I want my output to be like this:

text,10,100

How do I make sure this is done the way I want to?? The data is delivered
in
three variables.

Many thanks, Darius Blaszijk
 
Hi.
As a recursive funktion it sound like this;

(defun nm(x)
(cond
((car x)(cons(read (strcat(itoa(car x)) ","))(nm (cdr x))))
))

Where V is a list (1 2 3 4)
(nm v) will yield (1, 2, 3, 4,) ,as long as there are a (car x).

Yes ; that's all ; increadible thing this recurtion ; just in 3 lines ;))

P.C.
http://w1.1396.telia.com/~u139600113/a

"Ҫ" skrev i en meddelelse

Like this
(setq ll (0 1 2 3 4))
U want to change to 0,1,2,3,4
(setq num (length ll))
(setq i 1)
(setq aa (itoa (car ll)))
(repeat (- num 1)
(setq a (nth i ll))
(setq aa (strcat aa "," (itoa a)))
(setq i (1+ i))
)
(setq aa (strcat aa
...
 
Status
Not open for further replies.

Latest threads

Back
Top