-
HI,
I need to translste a file from one chr to another chr, What is the best way - good performance - to achive that task?
0) read the file
1) call a function with 200 case in that function to translate chr after chr ?
2) used Instr command ?
3) any other way???
Regards
-
What exactly do you want to do? Could you please explain your intentions a little better.
-
Open the file in binary, input all chr's in a byte array, use your algoritm (since you didn't tell us i guess you know) to convert each chr to the correct one
Code:
dim buffer() as byte
ff=freefile
Open yourfile for binary as ff
get ff,,buffer
close ff
-
Sorry folx,
What i have to do is a convert a file (all chars) from 1 chr to another chr - say chr(210) to chr(89). i like to know in a Performence point of view!! what is the best way to it? this is not for encryption!!!.
1) Call function Convert(byte)
select byte
case ..
case ..
..
..
- up to 255 times select
2) Using instr instraction ?
3) any other way?
Thanks