// OpenFile open a file given its local path from the project root
OpenFile open a file given its local path from the project root
// OpenFile open a file given its local path from the project root
func OpenFile(localPath string) (*os.File, error) {
	projectPath, err := getProjectRootPath()
	if err != nil {
		return nil, fmt.Errorf("error getting project root path: %s", err)
	}
	return os.OpenFile(path.Join(projectPath, localPath), os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
}
func OpenFile ( localPath string ) ( * os . File , error ) { projectPath , err := getProjectRootPath ( ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return os . OpenFile ( path . Join ( projectPath , localPath ) , os . O_RDWR | os . O_CREATE | os . O_TRUNC , 0666 ) }
OpenFile open a file given its local path from the project root
OpenFile open a file given its local path from the project root