LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 10-10-2005, 04:10 AM   #1
marie@dk
Member
 
Registered: Sep 2005
Location: Denmark
Distribution: Fedora Core 28
Posts: 49

Rep: Reputation: 15
How to convert binary text file from Windows


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?
 
Old 10-10-2005, 06:05 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
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.
 
Old 10-12-2005, 03:17 AM   #3
marie@dk
Member
 
Registered: Sep 2005
Location: Denmark
Distribution: Fedora Core 28
Posts: 49

Original Poster
Rep: Reputation: 15
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.
 
  


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 06:07 AM
Automatically tell text file from binary file? Hosiah Linux - Software 3 05-31-2005 05:22 AM
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM
Determining if a file is binary or text Cyth Linux - General 3 02-27-2003 12:36 PM
How would one convert a file into binary? MasterC General 8 01-21-2003 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration