Untitled

By Little Tern, 11 Years ago, written in TCL/iTCL, viewed 350 times.
URL http://pb.stoleyour.com/view/d491bd51 Embed
Download Paste or View RawExpand paste to full width of browser
  1.         # Various required directories and URLs
  2.         # MUST be set to existing folders or QuackBot will crash!
  3.         set tsvPath "tsv/"
  4.         set apiCachePath "apiCache/"
  5.         set apiBaseUrl "http://api.eveonline.com/"
  6.        
  7.         proc parsePairs { tsvName } {
  8.                 # Open TSV containing A:B pairs
  9.                 set f [open [file nativename $EveUtils::tsvPath$tsvName] r]
  10.                
  11.                 # Iterate over lines in file until the end
  12.                 while { [eof $f] == 0 } {
  13.                         # Read line (gets $f) and split it at tabs (\t)
  14.                         set splitLine [split [gets $f] "\t"]
  15.                         # Insert into array with A as key and B as value
  16.                         set pairMap([lindex $splitLine 0]) [lindex $splitLine 1]
  17.                 }
  18.                
  19.                 # Return array populated with A:B pairs
  20.                 return [array get pairMap]
  21.         }

Replies to Untitled rss

Title Name When
Re: Untitled Tinct Marten 11 Years ago.

Reply to "Untitled"

Here you can reply to the paste above