Hi,
I'm trying to write many files to a directory, and when the directory reaches X number of files, I want the least recently accessed file to be deleted before writing the new file. I don't really want to roll my own solution to this because I'd imagine someone else has already done this before. Are there existing solutions to this? N...
Hi folks,
Yes, this might sound like a newbie question but there's a TWIST! (And i've done an SO search already...)
I'm trying to read in multiple files, one at a time ... while each file is possibly getting new data APPENDED to the end of it.
I always know the last character position i was last at.
So when I get to a file, I'm think...
Hi,
I need to copy / move file and to be able deciding whether to override the target file (if exist), using IFileOperation interface, and without displaying the windows 7 confirmation dialog.
I can see the IFileOperationProgressSink.PreCopyItem parameter is a dwFlags enum. But this is an input parameter – so it can not influence the o...
var length = new System.IO.FileInfo(path).Length;
This gives the logical size of the file, not the size on the disk. I wish to get the size on the disk in C# (preferably without interop) of a file as given by Windows Explorer.
Should give the correct size including for:
Compressed file
Sparse file
Fragmented file
...
I often have code where I loop over a directory (including subdirectories) and need to move / copy the file to a different directory. What I find tedious is the process of identifying where the file will go. I have often done that, usually like this:
File shadow = new File(sourceFile.getAbsolutePath()
.replace(
...
My application include Text Viewer that grabs a file and shows it.
For some reason this file is trancuated on Samsung Epic. My questions are:
1. Why is happening only on the Epic.
2. Is there an Emulator to test on Epic (since I can't reproduce this on the 2.1 or 2.2 emulator)
Ohad
...
Hi All,
i want to move logs files from one path(source path) to another path(destination path). This source path and destination path is present in one text file. as::
source_path=abc/xyz
source_path=pqr/abc
desination_path=abcd/mlk
so i read this file and stored paths in different variables.i have multiple source path so i s...
Hi - I have a large .ps file. There are some variables defined but I am not able to figure the length of the variable.
I am picking some part of the code, it is like a four column and multiple row matrix.
.../$v.HDLE_UNIT_TOTAL ex 31.752 103.752 220.4 2 10.0 0.0 0 vsE //31.752 must b x axis?
/$v.PKGE_QTY_TOTAL ex 69.48 213.48 220.4 ...
I am a python newbie and have obtained a script that lets the user input a directory
where shapefiles are located (ex., c:\programfiles\shapefiles). It then creates a field within each shapefile and adds the directory path that was input and the shapefile name (ex., c:\programfiles\shapefiles\name.shp). I would like to populate the field...
Hey,
I have a repository for one of my projects that has a nested repository using the svn:externals property to update files from an external library. The problem is that I need to comment out one of the function declarations from one of the headers in this library, and carry around the modified header with the root repository.
Is the...
I'm trying to give my iOS app the ability to transfer an object to another iOS device running the same app. The object is on the order a few thousand KB of memory. Does anyone have a suggestion as to how to do this? I am considering using FTP, but that seems a little messy. Does anyone have any suggestions on possibly using GameKit? ...
Is There a better way to do this.
FileInfo f = new FileInfo("C://notebook.txt");
public bool Archived
{
get
{
return (((File.GetAttributes(f.FullName)) & FileAttributes.Archive) == FileAttributes.Archive);
}
set
{
if (value == true)
...
I have some values that I want to write in a text file with the constraint that each value has to go to a particular column of each line.
For example, lets say that I have values = [a, b, c, d] and I want to write them in a line so that a is going to be written in the 10th column of the line, b on the 25th, c on the 34th, and d on the 4...
I want to open a PDF file after clicking a button within gridview, which is inside an updatepanel.
Using Response.Write() etc. requires full postaback to send the HTTP headers for the file.
I dont want to use a postback trigger on my gridview, so after going through some forums I decided to use javascript and the hidden iframe trick t...
There is a file which is locked by another process for editing.
Is there any way to open the file in exclusive mode using the C program?
...
I've used a simple file_get_contents function but that didn't get the actual contents (output) of that..
I could not figure the error!!!
Code:
<?php
// $url = $_GET['url'];
// $flv_http_path = urlencode($url);
$flv_http_path = 'http://r12.bhartibb-maa1.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%...
Hello.
I'm coding a form using PHP and jQuery. I have a file upload field to which I applied the following jQuery-validate rules:
image: {
accept: "jpeg|jpg|png|gif",
required: "#edit_ID:blank"
}
The file upload field must only accept jpeg/jpg, png, or gif images. It is required only if the field with the ID "edit_ID" is left blan...
we want to edit one dll file that write with C#. I check the file with reflector and want to change just the connection string password field to new password.
How can I edit this without accessing to source code or recompiling the file?
...
i have a file contain list of path now i want to execute command on each line example :-
file name : rawabdeh
command : command
file contain:-
path/no/1/
path/no/2/
path/no/3/
i want to do the following :
command path/no/1/
command path/no/2/
command path/no/3/
...
Hi,
I have names of all files in output.txt but I do not have folderpath in output.txt file. For Example, if filename = test.txt and its folderpath=/usr/local/bin than in output.txt file, I only have filename as test.txt
output.txt files has many entries for filename, what I am trying to do is:
Move all files present output.txt to s...