I need help to fix this error:
fopen(/Subckt.txt): failed to open stream: Permission denied
Here is my partial code:
// Load the output file
$outputFile = fopen("\Subckt.txt", "w") or die("Unable to open file!");
// Load the input file into string
$inputFile = "\npn.lib";
// Put the input file in a string variable
$inputFileContent = file_get_contents($inputFile);
By JasonLewis
Read up on file_get_contents(). The error is self explanatory. You passed a resource to file_get_contents(), not a string. You need to call it like:
$contents = file_get_contents("textdoc.txt");
I found my answer there: https://forums.phpfreaks.com/topic/117829-solved-file-get-contents-help/