The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with reading text file bilal05 UNIX for Dummies Questions & Answers 1 04-12-2008 03:46 PM
Reading from Text file..... user__user3110 Shell Programming and Scripting 0 04-11-2008 05:18 AM
Reading text from a file LiquidChild Shell Programming and Scripting 12 05-30-2007 08:38 AM
Large Text Files caddyjoe77 Shell Programming and Scripting 4 07-12-2006 10:27 AM
reading text file jaan Shell Programming and Scripting 1 02-16-2004 08:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
JamesGoh JamesGoh is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 89
fopen() + reading in large text files

For reading in large text files (say files over 1kB in size) are there any issues with fopen() that I should be aware of ?

cheers
  #2 (permalink)  
Old 03-11-2008
ramkrix ramkrix is offline
Registered User
  
 

Join Date: Dec 2007
Location: TamilNadu,INDIA
Posts: 52
Hi,

There are no specific constarints with fopen() regarding the size of file. So you may proceed. If you are not contented with the reply, please refine your question further.

Regards,
Ramkrix
  #3 (permalink)  
Old 03-11-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,647
One note: there is the concept of a large file. These are files that exceed the capacity of the number of bytes a 32 bit file pointer can access. i.e., more than ~4.2GB of data.

This depends on your OS and sometimes the filesystems. If there is a problem with large files the fopen man page may mention how to deal with them. Frequently there is a call - maybe named like "fopen64" - that deals with largefiles. Check your man pages.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0