title: Kotlin Script (.kts) - How to divide it into multiple files?
body: <p>I have a Generator.kts file. When I execute it using:</p>
  
  <pre><code>kotlinc -script Generator.kts
  </code></pre>
  
  <p>everything works as expected.</p>
  
  <p>However, now my script has grown and I need to separate that class into multiple files.</p>
  
  <p>I did that but when I try to execute it again I get the following errors:</p>
  
  <pre><code>Generator.kts:8:23: error: unresolved reference: CSVReader
          val csvData = CSVReader().readCSV()
                        ^
  Generator.kts:10:23: error: unresolved reference: Folders
          val folders = Folders()
                        ^
  Generator.kts:14:9: error: unresolved reference: KeyStore
          KeyStore().generateKeyStoreFile(
  </code></pre>
  
  <p>Basically it fails to find all of the classes I created (CSVReader.kt, Folders.kt and KeyStore.kt). All those classes are in the same folder (including Generator.kts).</p>
  
  <p>How can I run a Kotlin script that uses multiple files?</p>