Software QA (13)
SQL Server (1)
How To Write a String to a File with a File Handle
How To Write a String to a File with a File Handle? - PHP Script Tips - Reading and Writing Files
If you have a file handle linked to a file opened for writing, and you want to write a string to the file, you can use the fwrite() function. It will write the string to the file where the file pointer is located, and moves the file pointer to the end of the string. Here is a PHP script example on how to use fwrite():
<?php $file = fopen("/temp/todo.txt", "w"); fwrite($file,"Download PHP scripts at dev.fyicenter.com.\r\n"); fwrite($file,"Download Perl scripts at dev.fyicenter.com.\r\n"); fclose($file); ?>
This script will write the following to the file:
Download PHP scripts at dev.fyicenter.com. Download Perl scripts at dev.fyicenter.com.
2007-04-23, 4998👍, 0💬
Can Sub Procedure/Function Be Called Recursively? - Oracle DBA FAQ - Creating Your Own PL/SQL Proced...
Wha is the output from System.out.println("Hell o"+null);?Hellonull
How do I debug thread ? This window is only seen when the program is running in debug mode. In windo...
What is thread? A thread is an independent path of execution in a system.
What are the core functionalities in XML .NET framework? Can you explain in detail those functionali...