Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define(VAP_FILE_LOCATION, 'vapdir/vaprun.txt');
- class VapParameters
- {
- public function __construct()
- {
- $this->init();
- }
- private function init()
- {
- // Open vaprun.txt
- $lines = file(VAP_FILE_LOCATION);
- // Read each line and split using ',' as the delimiter.
- foreach ($lines as $l) {
- list ($key, $value) = explode(',', trim($l));
- $vap_parameters[$key] = $value;
- }
- print_r($vap_parameters);
- }
- private $vap_parameters;
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement