>I have a project for ocr, after doing ocr i send all the page contents(charecters to a record menu datatype.)
>
>Nearly 3 million pages i have to send to the table, It might take atleast 6gb to 7 gb until finished.
>
>Is it possible to know the file size from foxpro.(for dbf file and fpt file both.)
>If the size is reaching to 2 GB then if an alerts comes then i can create another table OCRTable1 etc.
>
>table name is OCRTable.
>
>Thank you very much in advance.
Raj,
Use ADIR(ArrayName [, cFileSkeleton [, cAttribute [, nFlag]]]).
Pass the file path+name in the cFileSkeleton. Then in the array, the second elment would be the size of the file.
Hope this helps.
Dawa
Dawa Tsering
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature