LinuxQuestions.org
Visit Jeremy's Blog.
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: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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: 34
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


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 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


All times are GMT -5. The time now is 01:39 AM.

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