Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-03-2004, 02:51 AM   #1
LQ Newbie
Registered: May 2004
Posts: 7

Rep: Reputation: 0
Binary IO

how to open a file in Binary mode in AIX..? pls rep ASAP
Old 05-03-2004, 03:35 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
For all I know AIX (as all other Unices) doesn't
discriminate between ASCII/binary .... everything
is "binary" by default.

Old 05-03-2004, 03:38 AM   #3
LQ Newbie
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the more q, we try buildin a system which will have giga volume of file IO using a hell lotaa threads, processes....
is open better / fopen / fstream object.
Old 05-03-2004, 12:11 PM   #4
jim mcnamara
Registered: May 2002
Posts: 964

Rep: Reputation: 36
If you want faster I/O, you have to use primitives - calls that ask you to do more programming. C++ calls are not primitves, neither are the
calls in standard C - fopen, fread, etc.

The file routines in fcntl.h (open, read, etc.) are lower level primitives. And they are usually faster when there is a lot of I/O. These are the routines that are called by fopen, fread. But they require more twiddling from the programmer's point of view.

man fcntl
man open
man read
for more information


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
Source or Binary? dick_onion53 Fedora 4 12-31-2004 07:04 PM
Why is my binary so big? jon_k Linux - Software 2 11-19-2004 02:18 AM
Binary Puzzle aioss Programming 25 02-08-2004 03:50 PM
Binary Puzzle aioss Linux - Software 0 02-07-2004 02:44 PM
Binary Files guywithredhat Linux - General 7 03-18-2003 07:28 PM > Forums > Non-*NIX Forums > Programming

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration