ARUNSNAIR
21st May 2008, 19:04
Actually i have a file which has been transferred into the baan server using SFTP and the file is in some different mode. As a result when i am trying to read this file using the seq.gets(), baan is not able to identify the line seprator and the eof() indicator gets reset.

What should i do to open this file and use it, so that te program logic doesn't change. I am also not thinking of using any convert programs etc due to the security concern of the company

zardoz
21st May 2008, 19:37
If the file is generated from windows and the transfer was in binary mode, the translation of CRLF characters is different on Unix systems.
You have to transfer it using ASCII mode.
If isn't possible to transfer it again from the original system, you can:

- transfer the file in any windows system using FTP binary mode
- transfer it again to Unix using FTP ASCII mode

This must correct the problem.

PS.: In unix are some commands that do this without using ftp, unfortunatly I havent this time access to unix system, search in unix for dos2unix command or something similar...