![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I need the best format to write a large DAT file with numbers from a loop. idea: openfile of some sort For c1 = 1 to x For c2 = 1 to y For c3 = 1 to z Write (c1,c2,c3,c1*c2*c3) to a file in some number format next next next closefile of somesort In other words which keywords do I use? FilePut, FileWite etc. If anyone has an example I'd appreciate it very much.... thnx Marc Last edited by Stellaferox : 02-03-2008 at 12:08 PM. Reason: spelling |
|
||||
|
The best approach is to use a random access file.
Open the file with FileOpen(c,"filename",cRandom). Now you have two options: 1. Use FileGet / FilePut and save the numbers as double type (8 bytes per number). 2. BETTER: Use BinaryFile to write and read the required types. |
|
|||
|
Hi guys,
could be darn question... If large data will be splited in two or more data files and then do some filters in opening a necessary file where to read particular data, is it an advantage in some way or not? regards,
__________________
Rioven Sony Ericsson XPERIA X1i WM6.1 480x800 Display Resolution with QWERTY keyboard |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to delete and overwrite a write-protected file? | Hertz | Questions & Help Needed | 4 | 07-25-2008 06:59 PM |
| Display large text file | JamesC | Questions & Help Needed | 3 | 03-08-2008 03:45 AM |
| Struggling with the Icon File format. | RandomCoder | Questions & Help Needed | 2 | 08-04-2007 08:05 PM |
| Large Txt or data file | tcgoh | Questions & Help Needed | 4 | 05-29-2007 02:37 AM |
| Format of file "SQLDesktop.dll" is invalid. | Peter | Bug Reports | 2 | 05-03-2007 11:58 AM |