As a TurboBasic user, I wrote this below to replace tabs with commas as I was working with comma deliminated files. I can't seem to be able to do the same in PowerBasic for WIndows. Any help out there?
Thanks. Steve
OPEN filein$ FOR BINARY AS 6
OPEN fileout$ FOR BINARY AS 7
WHILE NOT EOF(6)
FOR I%=1 TO 1000
GET$#6,I%,x$
REPLACE CHR$(9) WITH "," IN x$
PUT$#7,x$
NEXT I%
WEND
CLOSE #6
CLOSE #7
Thanks. Steve
OPEN filein$ FOR BINARY AS 6
OPEN fileout$ FOR BINARY AS 7
WHILE NOT EOF(6)
FOR I%=1 TO 1000
GET$#6,I%,x$
REPLACE CHR$(9) WITH "," IN x$
PUT$#7,x$
NEXT I%
WEND
CLOSE #6
CLOSE #7
Comment