Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

File Create/Write in PHP

Create File in PHP To create a file in PHP fopen() function is used i.e., the function that is used to open a file is also used to create a file. If we use, fopen function() to open a file and file doesn't exist, it will create a new file. For exam

How to add openCV sdk and native libs in your project?

OpenCV is an open source project that provides OpenCV android SDK to match one template against other. These are the following steps to add OpenCv in your project : 1. First of all download Android studio from this link - https://developer.android.

PHP: Read CSV FILE, Write CSV FILE and READWRITE CSV FILE

1> Read CSV file When you read the CSV file in php you use the code given below.Here we use the fopen(), fgetcsv() functions to read the csv file. The below code reads data from a CSV file read.csv <?php if (($handle = fopen("read.csv", "r"

Open, Read, Append and Close file

OPEN FILE-  fopen() In php file is opened by the fopen() function. The fopen() contains  two parameters. The first parameter of fopen() holds the name of the file to be opened and second parameter indicates the mode in which file is to be

Reading and writing file on MAC with Python

Hi All ,   Some time we have to create a file to store some data for our application and also read that file whenever we need it. So in this tutorial we will learn how to create a file on MAC system using python and also reading and writing on

File I/O in C

File represents a set of bytes whether a text file or a binary file.   File is used to store data in the textual or in encoded format as per as use requirement.   Modes of File Mode Description r Opens an existi

Parition of log files

Generally we got errors at the time of development so logs are the best place to find out the errors. Its easy to deal with log file on our local machine but if there is a live site and we have to check out for logs and logs are getting larger so som

How to create log file in PHP

If you want to debug a large amount of data. You need to create a Log file with the following piece of code. $file = fopen ( "testfile.txt" , "a+" ); fwrite ( $file , serialize ( print_r ( $_POST , true ) ) ); fopen(): It is inbuilt function which

java.io.FileNotFoundException: the system cannot find the file specified

If you face following error: "java.io.FileNotFoundException: the system cannot find the file specified" and error similar to below is visible in logs: Exception in thread "main" java.io.FileNotFoundException: Report.PDF (The system c

PHP Copy Files

How to open and read PHP files have been discussed in previous blog: http://findnerd.com/list/view/How-to-open-and-read-files-with-PHP/3157/ Now,we will discuss about copying a php file. In php,we can Copy files from “source” to “destination”. Fun

1 2 4 129
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: