2011-08-01から1ヶ月間の記事一覧

VBAだとこんな感じ。固定長に切る

秀丸で頑張るのもなんなので、VBAで考えてみた。 Const ForAppending = 8 Dim myFileSystem As New Scripting.FileSystemObject Dim mytextFileIn As Scripting.TextStream Dim mytextFileOut As Scripting.TextStream Dim buf As String buf = "" Set mytex…

秀丸マクロ 事始め

改行の入っていないファイルを固定長で改行を入れる為の秀丸マクロ setcompatiblemode 0x0F; #a = 100; while( #a > 0 ){ right 100; insertreturn; #a = #a - 1; }でも、この方法では、全角半角が混在すると、想定外の箇所で切れてしまう。だめじゃん