Re: Need help with large file reading and writing.



I am reading your post as meaning you open and close files one after
another and the program stops after doing this 10 times.

The MS operating system allows you to execute in a DOS environment and
in a Windows console environment (and others) but these two can both be
used for a DOS-target compilation. Both have a limit on the number of
files being open at the same time. 5 files are already taken internally
but are in the count of active data control blocks. IF and only IF this
is what you are doing you have to change the number of DCB file blocks
to be assigned ata program start. This is usually done in autoexec.nt
for NT and XP systems (in \WINNT\System32. or similar folder) and in
autoexec.bat in the disc root (C:\) in earlier Windows systems.

I had this problem with a general sort-merge routine where I sometimes
needed 32 work files. I had to write an NT-specific native Windows
program because NT comes with a fixed limit for DOS emulations.

I don't thinkyou have a file size problem, without more information
Terence Wright

.