473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

cannot open huge file (beyond 4GB) with fopen

Hi, I have a 13GB file. fopen() is failing on me. The resulting perror
message is: "Value too large to be stored in data type". Can someone
sugggest a solution? Do I need to use a new file library?

I am on an AIX, 32-bit PPC architecture, in case that matters.

Nov 24 '05 #1
5 4780
Digital Puer wrote:
Hi, I have a 13GB file. fopen() is failing on me. The resulting perror
message is: "Value too large to be stored in data type". Can someone
sugggest a solution? Do I need to use a new file library?

I am on an AIX, 32-bit PPC architecture, in case that matters.

I'm unfamiliar with the platform, but if fopen() is already failing
before you even perform an operation on the file, your problem is with
the C library implementation.

Try a platform or library-specific newsgroup/forum/wiki/message
board/Post-It(tm) exchange network. comp.unix.aix looks promising.

S.
Nov 24 '05 #2
Skarmander wrote:
Digital Puer wrote:
Hi, I have a 13GB file. fopen() is failing on me. The resulting perror
message is: "Value too large to be stored in data type". Can someone
sugggest a solution? Do I need to use a new file library?

I am on an AIX, 32-bit PPC architecture, in case that matters.

I'm unfamiliar with the platform, but if fopen() is already failing
before you even perform an operation on the file, your problem is with
the C library implementation.

Try a platform or library-specific newsgroup/forum/wiki/message
board/Post-It(tm) exchange network. comp.unix.aix looks promising.

Oh, and try "man fopen64".

S.
Nov 24 '05 #3
"Digital Puer" <di**********@hotmail.com> writes:
Hi, I have a 13GB file. fopen() is failing on me. The resulting perror
message is: "Value too large to be stored in data type". Can someone
sugggest a solution? Do I need to use a new file library?

I am on an AIX, 32-bit PPC architecture, in case that matters.


This is system-specific, so we can't really give a definitive answer
here.

<OFF_TOPIC>
I don't know whether the "-q64" option to IBM's compiler will help.
</OFF_TOPIC>

Try comp.unix.aix.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 24 '05 #4
On 23 Nov 2005 18:27:02 -0800, in comp.lang.c , "Digital Puer"
<di**********@hotmail.com> wrote:
Hi, I have a 13GB file. fopen() is failing on me. The resulting perror
message is: "Value too large to be stored in data type". Can someone
sugggest a solution?
Upgrade to Solaris.... :-)
Do I need to use a new file library?


Its possible you might find a different standard library could handle
larger files. the likely problem is that the filesize is stored in a
long, which on a 32-bit implementation is probably 32 bits ie max of
4GB.

The short answer is that this is very operating system specific, and
you'll need to ask in a group specialising in your OS.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 24 '05 #5

Skarmander wrote:

Oh, and try "man fopen64".

S.

This works. Thanks!

Nov 25 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ryan | last post by:
PowerPoint.Application cannot open PPT file I am trying to use the following code using to open a PPT file using VS.NET 2003 and PowerPoint 2003 Option Strict Off Imports...
0
by: Dougie | last post by:
Hi All, I am trying to create a windows service that will open my lotus notes email inbox and transfer the message body text to MS SQL. I can get the code working in a windows application (via...
1
by: woodBeeProgrammer | last post by:
CONTEXT ok, so if i register the file extension .bar Windows is happy and when a user double clicks myApp gets called. but if the user double clicks my data file BEFORE i get to register, the...
3
by: Neal | last post by:
Hi All I am trying to connect from ASP.Net app to an Access Db. If i don't specify a userid an pwd.. I get this error The Microsoft Jet database engine cannot open the file 'C:\Documents and...
1
by: Morten Wennevik | last post by:
I'm transferring an Excel file from a client computer to a web-page on a server, then trying to open the file on the server causes this exception message to occur. The Microsoft Jet database...
3
by: Boki | last post by:
Dear All, I just installed the DirectX SDK, and I install the Tutorial00 project, I compile it, but it shows: ------ Build started: Project: Tutorial00, Configuration: Debug Win32 ------...
2
by: John Donnell | last post by:
We have recently added another PC to the network and have run into difficulty when trying to open access files from the server using the new box. We get the error message 'MS Access cannot open...
0
by: Fendi Baba | last post by:
I created an ASP.net page which opens excel. This works fine in Office 2007. However, Excel 2003 runs in an error which states "cannot read output file". Hee is the VB code and below is the ASPX...
24
by: dancer | last post by:
Using ASP.net 1.1 and Microsoft Access. I received the following error message. Why? I have closed the Access file. I have another very small access file that opens with no trouble with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.