Simple Columnar Encryption problem!

Hi all,
I have implemented some code for simple columnar encryption. The algorithm is encrypting properly as I want. But during decryption it's giving me some errors. Please go through and suggest me if any idea

sorry forgot to give example
Suppose we have data abcdef and user inputs no of colunns as 2 then our data would be
a b
c d
e f
And encrypted would be acebdf please help me out if you understand problem. F.seek(10) is used for internal purpose to save files extension

I'm not sure how your algorithm in your code work... You tends to manipulate file content instead of read the whole thing, work with it, then write out the whole thing. It would be much easier to deal with the whole string all at once because you will iterate through the string only once O(n) to get the encryption done. The way you are doing is odd...

I was trying it other way .. I read the bytes from file and concatenated to a string , after that i did convert that string to byte array and tried to write bytes by
f.write() as well as f.writeByte() but both the things are writting only INTEGER values. Please what to do help , it's very urgent!

I solved this problem by setting the decrypted file length to encrypted file length-10. It was attaching some garbage characters at the end after decryption. But problem is solved . Thanks :)
Mods can close this thread!

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...