Please check out the following site read in BN from a file and write BN to a file:
Read and write BIF, NET, DSC and DOT files
Please reply to this post with your experience whether the above tool worked. Also please feel free to reply with any other tools that worked for you to read in BN from a file and write BN to a file.