i want to let the user type in the name of a new file, so there are certain characters i want to prevent entry on. is there a special keyboard i can use or can i disable certain keys on the iphones keyboard.
is the answer to just run a regular expression on the input text and tell the user the filename is invalid (if so what would that ...
I have some application, which has ability to update itself. Its downloads the jar file from the net, and then tries to replace used jar to run this application by downloaded one.
But I cannot to do that, because the file is locked by windows, because application is still running.
Does anybody know some workaround of that?
Thanks a lot....
Is making system call to "md5sum file1" and "md5sum file2" and compare two return values enough in this case?
...
After I copy mdf file (and his log file) I tries to Insert data.
I receive the following message:
"An attempt to attach an auto-named database for file [fileName].mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
When I copied the file manual everything worked normally....
Hello, I have this php cURL function:
function curl_login($url,$data,$proxy,$proxystatus){
$fp = fopen("cookietlt.txt", "w");
fclose($fp);
$login = curl_init();
curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($login, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MS...
I had posted a similar question related to plotting data, and now I'd like to know how to handle missing data when outputting data to an Excel file using the XLSWRITE function.
I have two sets of data of different length (described in the question I link to above). I am trying to replace the smaller file with zeroes for the times when t...
Something like:
/directory/a/b - /directory/ = a/b
Is it possible to do this easily?
...
When we map a file to memory, a system call is required. Do subsequent accesses to the file require system calls or is the virtual memory page of the process mapped to the actual page cache in memory?
update:
what i also want to know is that if multiple processes are accessing the same file through mmap. they will be accessing the same ...
Hi,
I'm pretty new to c#. Can somebody please give me the right direction on how can I parse the following text file?
The program I am trying to implement will do the following:
It will ask the user to enter a directory.
It will search the directory for text files.
It will loop through the text files, parse them, and save them in a o...
I want to get all file names from a folder using Ruby.
...
We're using the following approach to writing out text files:
public void WriteFile(string filePath, string contents)
{
if (string.IsNullOrEmpty(filePath)) { throw new ArgumentNullException("filePath"); }
if (contents == null) { throw new ArgumentNullException("contents"); }
if (File.Exists(filePath))
{
throw ne...
I have something like:
MEDIA_ROOT = '/home/httpd/foo/media/'
MEDIA_URL = 'http://www.example.org/media/'
(...)
file = models.FileField(upload_to='test')
When I create an object with that field in the admin page Django stores in the DB the full file path, like: "/home/httpd/foo/media/test/myfile.pdf". This is contrary to what says i...
I wrote a program that uses xcopy to transfer files (usually between 1KB and 2MB) over our intranet. Usually, I am copying files from my host machine (Windows 7 x64) to a VMWare virtual machine running Windows Server 2008 (the VM is running on my host machine, if that matters).
On Windows XP, the file transfers usually only require a fe...
I am trying to read a csv using get line to extract three variables separated by commas. Name, Course, and Grade.
I am reading in the first line fine but it puts in weird new line breaks and sends the format into a cluster.
Here is my code :
#include "header.h"
string student::GetCourse() {
return course;
}
string student::GetNa...
The input file have records as: 8712351,8712353,8712353,8712354,8712356,8712352,8712355
8712352,8712355
Using COBOL I need to remove duplicates from the above file and write to an output file. I
wrote simple logic to read records and write to an output file.
Where do I need to put the logic of removing duplicates (say ,8712353,8712352...
Hi. I have been working on an app for a while now, and it is supposed to copy files. I have the code:
- (IBAction)moveFile:(id)sender
{
NSFileManager *filemgr;
filemgr = [NSFileManager defaultManager];
NSString *fileToMove = [NSString stringWithFormat:@"%@", "TestText.txt"];
if ([filemgr copyItemAtPath: fileToMove toPath: @"./T...
I'm trying to get two different apps to communicate through a file. I would like app 1 to append some text to a file, and app 2 to notice, and read the new bytes (not the whole file).
There is an event, ProgressEvent.PROGRESS, that is supposed to fire when new data is available on a FileStream, but it only fires when I first open the f...
I am looking for documentation/tutorial for Inotifier as I need to implement file notification logic in PHP.
...
I would like to display an image but have the file name different than the actual file name on the server.
ex) The user would see <img src="/img/photos/Awesome_Picture_By_John.jpg"> by looking at the source code
but the actual file name would be /img/photos/12b7dch2.jpg
any help is appreciated. Thx
...
My local test server crashes as soon as I'm trying to write to a logfile. I'm using this for an ASP.NET-Page, codebehind is C#.
Structure:
/
Functions.cs
index.aspx
index.aspx.cs
I create an instance of Functions as my index.aspx loads. In Functions, I define a function for logging, which is called from index.aspx.cs and looks lik...