Jump to content

Recommended Posts

Posted

with WRITE-LINE function I need to attach a long string.But error message is coming when feed a long string.

Is there a method to feed long strings? 

Posted

Divide the long string into parts to be able to write them to your target file.

  • Thanks 1
Posted

How about write-char?

 

p/s FYI I've seen software similar @Tharwat's split method to convert string to (eg: com port devices) '*.raw' format which string data was 'chopped' to an 8bit-block (128 ascii char for each line) with bcc checksum

  • Thanks 1
Posted

There is a poke method in lisp that would allow for long strings. I have seen this but it’s not used very often.

 

Peek and poke is for reading database style files.

  • Thanks 1
Posted
18 hours ago, Tharwat said:

Divide the long string into parts to be able to write them to your target file.

Ye s it was very easy . I added  (write-line "5555555" fn) (write-line "66666666" fn)

Posted
1 hour ago, wimal said:

Ye s it was very easy . I added  (write-line "5555555" fn) (write-line "66666666" fn)

This must be better:

(foreach string '("a" "b" "c")
  (write-line string fn)
)

 

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...