Jump to content

error: string too long on input


wimal

Recommended Posts

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? 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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...