![]() |
|
|||||||
| 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 |
|
|||
|
The first part of the program is to caculate the outplayed hand (7 cards). With that I can simulate dealing let's say 200000 hands and calcuate probabilities and distribution. Then for the second part I want to calculate probabilities to reach a certain hand with the ongoing play after dealing the several rounds.
The idea is whether I can create a table with pointers after each card to a next table with remaining possibilities. I haven't got it quite clear yet, but the first idea is to build the "mothertable" of all 133784560 combinations. Marc |
|
|||
|
But can I get back to the original question? What is the general format/ routine to read in CSV files. There are a number of CSV files on the net that I can use to train my program. After that I can write my own table in BinaryFile.
thnx Marc |
|
||||
|
Open one with Wordpad or Notepad. They are just normal text files.
Code:
If FileExist ("text.csv") = true Then
FileOpen (c1,"text.csv",cRead ,, cASCII)
r = FileRead (c1)
Do Until r = EOF
fields() = StrSplit(r,",")
Msgbox(fields(0) & " - " & fields (1)) ' do whatever with the fields
r = FileRead (c1)
Loop
FileClose (c1)
|
![]() |
| 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 |
| read and delete sms...how? | Byak@ | Questions & Help Needed | 1 | 10-12-2008 07:42 PM |
| PPC Help files format | JamesC | Questions & Help Needed | 4 | 07-24-2008 01:36 PM |
| XML file read | stratus | Questions & Help Needed | 8 | 06-20-2008 04:03 PM |
| How to know if a PM was read!? | Cableguy | Forum Discussion | 0 | 05-12-2007 10:17 PM |
| Read a row (SQL) | Nkieto | Questions & Help Needed | 2 | 05-03-2007 05:29 PM |