function opensscp( fileName )
%OPENSSCP Open a Simscape language protected file
%   OPENSSCP enables the OPEN command for Simscape language protected files
    
%   Copyright 2008-2017 The MathWorks, Inc.
    
[fileDir, fileBase] = fileparts( fileName );

simscapeUnprotectedFile = fullfile(fileDir, [fileBase '.ssc']);

if exist( simscapeUnprotectedFile , 'file' )
    edit( simscapeUnprotectedFile );
else
    pm_error('physmod:simscape:compiler:mli:opensscp:SimscapeUnprotectedFileNotFound', fileName);    
end
    
end

