wimal Posted December 21, 2018 Posted December 21, 2018 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? Quote
Tharwat Posted December 21, 2018 Posted December 21, 2018 Divide the long string into parts to be able to write them to your target file. 1 Quote
Lee Mac Posted December 21, 2018 Posted December 21, 2018 Alternatively, you could use the WriteLine method of the FSO. 1 Quote
hanhphuc Posted December 21, 2018 Posted December 21, 2018 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 1 Quote
BIGAL Posted December 22, 2018 Posted December 22, 2018 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. 1 Quote
wimal Posted December 22, 2018 Author Posted December 22, 2018 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) Quote
Tharwat Posted December 22, 2018 Posted December 22, 2018 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) ) 1 Quote
Recommended Posts
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.