Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tile..
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
1337_brad




PostPosted: Sun Feb 13, 2005 8:03 pm   Post subject: Tile..

Hey I just need to get refreshed on how to read a tiled format from a textfile, ie: 1 2 3 4 5
6 7 8 9 1
2 3 4 5 6

I want to get this into a 2d array so that those numbers are saved to the co-ordinate coresponding with where they are in the text file
I belive it is something like this I just forgot how to exactly do it:

code:

   open : stream1, "Thefile.txt", get

   for i: 1.. 5
           for j: 1..3
              get: stream1, TheArray(i,j)
end for
end for
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: