LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-03-2004, 01:51 AM   #1
arvind_tyche
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, 02:35 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


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

Original Poster
Rep: Reputation: 0
thanks for the rep...one 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, 11:11 AM   #4
jim mcnamara
Member
 
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.

Try
Code:
man fcntl
man open
man read
for more information
 
  


Reply



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 06:04 PM
Why is my binary so big? jon_k Linux - Software 2 11-19-2004 01:18 AM
Binary Puzzle aioss Programming 25 02-08-2004 02:50 PM
Binary Puzzle aioss Linux - Software 0 02-07-2004 01:44 PM
Binary Files guywithredhat Linux - General 7 03-18-2003 06:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:51 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