LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2005, 05:10 AM   #1
marie@dk
Member
 
Registered: Sep 2005
Location: Denmark
Distribution: Fedora Core 9
Posts: 44
Thanked: 0
How to convert binary text file from Windows


[Log in to get rid of this advertisement]
I just got a *.csv file from a colleage who is using windows. She uploaded the file to a webpage, and I downloaded it via http.
For some reason, the file is binary and open office can't open it ... Is there some way to convert it to ascii?
marie@dk is offline     Reply With Quote
Old 10-10-2005, 07:05 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 107
Thanked: 5
The file can't be binary and text. I would guess the file is a binary file and has not been exported correctly.

You can try to use the command file which will attempt to identify what format the file uses.

Code:
 file  myfile.csv
if its a text file you should get back something like

Code:
myfile.csv: ASCII English text, with CRLF line terminators
The with CRLF line terminators indicates that its a text file saved in the format windows uses. Windows stores lines of text that end in a Carridge Return and then a Line Feed Charicter. Unix & linux uses a Line Feed charicter only.
cardy is offline     Reply With Quote
Old 10-12-2005, 04:17 AM   #3
marie@dk
Member
 
Registered: Sep 2005
Location: Denmark
Distribution: Fedora Core 9
Posts: 44
Thanked: 0

Original Poster
Thanks :-)

I'm sure you are right about the file not being exported correctly... I just assumed it was a windows -> linux problem. But I later discovered that I couldn't open it in windows either.
marie@dk is offline     Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
timezone binary to text file jude1980 Linux - Software 0 11-23-2005 07:07 AM
Automatically tell text file from binary file? Hosiah Linux - Software 3 05-31-2005 06:22 AM
convert text file to binary excel file ust Linux - General 2 11-23-2004 03:33 AM
Determining if a file is binary or text Cyth Linux - General 3 02-27-2003 01:36 PM
How would one convert a file into binary? MasterC General 8 01-21-2003 11:50 PM


All times are GMT -5. The time now is 06:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration