-
|
I want to convert leading spaces (entab/size string 2 ?) of a utf8 file to tabs and save it as a utf8 file. How can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
You mean this? write %result.txt entab/size read/string %source.txt 2 |
Beta Was this translation helpful? Give feedback.
-
|
Yes. Thanks for the reply. The editor incorrectly said the saved file was ANSI instead of utf8. |
Beta Was this translation helpful? Give feedback.
-
|
Btw... I just pushed modification that So it will be possible to write just: write %result.txt entab read %source.txt |
Beta Was this translation helpful? Give feedback.
-
|
At first, I thought entab/detab also accepted file! type: |
Beta Was this translation helpful? Give feedback.
Btw... I just pushed modification that
entab/detabwill accept also binary input.Oldes/Rebol-issues#2643
So it will be possible to write just: