Discussion Forum : file-io

file_put_contents permission denied
I am trying to write a query to a file for debugging. The file is in database/execute.php. The file I want to write to i ... View Detail
 Upvotes: 0   Answers: 0
How to copy a file from one directory to another using PHP?
Say I've got a file test.php in foo directory as well as bar. How can I replace bar/test.php with foo/test.php using PHP ... View Detail
 Upvotes: 0   Answers: 0
PHP: How to check if image file exists?
I need to see if a specific image exists on my cdn. I've tried the following and it doesn't work: if (file_exists(http ... View Detail
 Upvotes: 0   Answers: 0
How to delete a file via PHP?
How do I delete a file from my server with PHP if the file is in another directory? Here is my page layout: projects ... View Detail
 Upvotes: 0   Answers: 0
What is the difference between StreamWriter.Flush() and StreamWriter.Close()?
What is the difference in functionality between StreamWriter.Flush() and StreamWriter.Close()? When my data wasn't bein ... View Detail
 Upvotes: 0   Answers: 0
How can I read a text file without locking it?
I have a windows service writes its log in a text file in a simple format. Now, I'm going to create a small application ... View Detail
 Upvotes: 0   Answers: 0
How to read existing text files without defining path
Most of the examples shows how to read text file from exact location (f.e. C:\Users\Owner\Documents\test1.txt). But, how ... View Detail
 Upvotes: 0   Answers: 0
Delete files from directory if filename contains a certain word
I need to check a directory to see if there are any files whose file name contains a specific keyword and if there are, ... View Detail
 Upvotes: 0   Answers: 0
How to read the data in a wav file to an array
I need to get all the samples of a wav file into an array (or two if you need to do that to keep the stereo) so that I c ... View Detail
 Upvotes: 0   Answers: 0
can I check if a file exists at a URL?
I know I can locally, on my filesystem, check if a file exists: if(File.Exists(path))  Can I check at a particular rem ... View Detail
 Upvotes: 0   Answers: 0
FileSystemWatcher vs polling to watch for file changes
I need to setup an application that watches for files being created in a directory, both locally or on a network drive. ... View Detail
 Upvotes: 0   Answers: 0
How to extract file name from file path name?
I need to move all files from source folder to destination folder. How can I easily extract file name from file path nam ... View Detail
 Upvotes: 0   Answers: 0
How to get the location of the DLL currently executing?
I have a config file that I need to load as part of the execution of a dll I am writing. The problem I am having is tha ... View Detail
 Upvotes: 0   Answers: 0
Quickest way in C# to find a file in a directory with over 20,000 files
I have a job that runs every night to pull xml files from a directory that has over 20,000 subfolders under the root. H ... View Detail
 Upvotes: 0   Answers: 0
File Copy with Progress Bar
I used this code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Fo ... View Detail
 Upvotes: 0   Answers: 0
What is the simplest way to write the contents of a StringBuilder to a text file in .NET 1.1?
I have to use StringBuilder instead of a List of string because of being stuck with .NET 1.1 for this project. It's real ... View Detail
 Upvotes: 0   Answers: 0
Validate image from file in C#
I'm loading an image from a file, and I want to know how to validate the image before it is fully read from the file. s ... View Detail
 Upvotes: 0   Answers: 0
Rename existing file name
I have the following code which copies a file to a specific folder and then renames it. When a file with that name alrea ... View Detail
 Upvotes: 0   Answers: 0
How to get a MemoryStream from a Stream in .NET?
I have the following constructor method which opens a MemoryStream from a file path: MemoryStream _ms;  public MyClass( ... View Detail
 Upvotes: 0   Answers: 0
Read a HTML file into a string variable in memory
If I have a HTML file on disk, How can I read it all at once in to a String variable at run time? Then I need to do some ... View Detail
 Upvotes: 0   Answers: 0
Creating application shortcut in a directory
How do you create an application shortcut (.lnk file) in C# or using the .NET framework? The result would be a .lnk fil ... View Detail
 Upvotes: 0   Answers: 0
Can .NET load and parse a properties file equivalent to Java Properties class?
Is there an easy way in C# to read a properties file that has each property on a separate line followed by an equals sig ... View Detail
 Upvotes: 0   Answers: 0
Renaming a directory in C#
I couldn't find a DirectoryInfo.Rename(To) or FileInfo.Rename(To) method anywhere. So, I wrote my own and I'm posting i ... View Detail
 Upvotes: 0   Answers: 0
File.Move Does Not Work - File Already Exists
I've got a folder: c:\test I'm trying this code: File.Move(@c:\test\SomeFile.txt, @c:\test\Test);  I get excepti ... View Detail
 Upvotes: 0   Answers: 0
C# Copy a file to another location with a different name
If certain conditions are met, I want to copy a file from one directory to another WITHOUT deleting the original file. I ... View Detail
 Upvotes: 0   Answers: 0

Quick Links



Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..


Login to Open ESchool OR Create your account    Login   SignUp