Similar to ECMAScript, a Solidity file is declared using the import statement as follows:
import "filename.sol";
The preceding statement will import all the symbols from the filename.sol file into the current file as global statements.
Paths are also supported while importing a file, so you can useĀ / or . or .. similar to JavaScript.