Results 1 to 2 of 2

Thread: Windows to Unix. Text files.

  1. #1

    Thread Starter
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Windows to Unix. Text files.

    When I ftp a text file to the unix server, all the carriage returns are represented by some characters. As a result when I load this file into my oracle database, the last column contains some unreadable characters and my select queries fail.

    The only way of preventing this to open the file in textpad and save it for Unix. Then everything goes well as intended.

    How do I do this without using textpad? Can this be done in notepad for instance.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Windows to Unix. Text files.

    It should be easy enough to do with a simple bit of VB code. The difference is the 'new line' marker, which for Windows is Chr(13) + Chr(10), but in *nix (I think) is just Chr(10).

    A simple call to Replace would do the conversion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width