Customize WooCommerce my account dashboard through plugin

I ended up doing it in what I would consider a sloppy way. On the init hook I check the WooCommerce template against my custom template and if the WooCommerce template does not match my template then I replace the WooCommerce template with my template.

add_action( 'init', 'run_inital' );
function run_inital(){
    $wooThemePath = $woocommerce->plugin_path()."/templates/myaccount/dashboard.php";
    $myThemeFile = file_get_contents(plugin_dir_path( __FILE__ )."/WooCommerce/dashboard.php");
    $WooThemeFile = file_get_contents($wooThemePath);
    if($myThemeFile != $WooThemeFile){
        $Woo_Theme = fopen($wooThemePath, "w");
        fwrite($Woo_Theme, $myThemeFile);
    }

}

If you wanted to make this snippet better you should check to see if the file sizes are different instead of comparing the contents.