Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: binary
;debug(1) fs1 = FileSize( "C:\TEMP\zFILETOPARSE.TXT" ) binbuf1 = BinaryAlloc( fs1 + 100 ) BinaryRead( binbuf1, "C:\TEMP\zFILETOPARSE.TXT" ) tempptr=5 For offset=0 to int(fs1/5.0);might need to adjust this BoxOpen("Increment", int(fs1/5.0)) BinaryPokeStr( binbuf1, tempptr, "|") tempptr = tempptr+6 ;this does it ;tempptr = tempptr+5 ;this inserts every 4 chars Next BinaryWrite( binbuf1, "C:\TEMP\zPARSEDFILE.TXT") BinaryFree( binbuf1 ) Message("Parsing", "Done.")
Article ID: W12731
Filename: Insert a Delimiter Every 5 Chars.txt
File Created: 1999:04:15:16:49:14
Last Updated: 1999:04:15:16:49:14