Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default read a Unix binary file

Hi,

I need to read unix binary files with Excel VBA.

The problem is not to read a binary file. I use :

Dim buffer(1 to 1000) as single
Open file For Binary As 1
Get #1, 1, buffer

The problem is that IEEE binary information are stored left-to-right in UNIX
and right-to-left in WINDOWS
(or the contrary).

I found a first solution to this problem which is

read binary data in a buffer of byte
invert 4 by 4 the bytes of buffer
write buffer in a new binary file
read binary data

Does anyone know a better solution ?

thanks,

Arnaud


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do a UNIX-style diff between two versions of an Excel file Kilongen Excel Discussion (Misc queries) 3 August 10th 09 05:31 PM
read excel with a c++ program on Unix [email protected] Excel Worksheet Functions 1 July 27th 06 10:10 PM
How can I read/write file with binary format??? NC Excel Programming 2 May 27th 04 09:35 AM
Unix Directory/File Listing enchilada Excel Programming 0 December 10th 03 07:46 AM
file transfer to/from a unix machine rajib Excel Programming 0 September 18th 03 03:54 PM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"