file

.NET File locking problem

I am currently doing the following: I create a file using FileStream braced in the using() tag - Only the file creation takes place within the using statement. The rest of the statements are nearly sequential. Launch the file I have created using Process.Start() Read a small bit of meta data from the file using Assembly.ReflectionOnlyL...

How do you get input type of file to auto post back on selection in ASP.NET

I have an ASP.NET Webform and inside the form I have an input type of file. What I would like to happen is for the form to post immediately after the user chooses a file. I have a server side function I would like to be called, let's say UploadedFile() What is the easiest way to accomplish this? ...

PHP getopt Operations

This question is regarding getopt function in php. I need to pass two parameter to the php scripts like php script.php -f filename -t filetype Now depending upon the file type which can be u, c or s I need to do proper operation. I am using switch case for the same: Here is the Code I am using: // Get filename of input file when e...

Alternative to Amazon’s S3 service?

Just wondering if there is good alternative to Amazon's S3 service? I like S3 but the bandwidth cost is high. I looked at CouldFiles from Rackspace but the cost is even higher. I don't mind prepaying or having monthly payment in order to reduce the bandwidth cost greatly. Thank you for any help ...

Custom file type and icon

I have a game I'm writing in java, it has the functionality to save games and load them all working with .txt files but I thought it would be cool if I could have my own file type...I know I can just set it to save as a type that isn't already defined but then I get a blank icon for the file...is there a way I can give it a custom file i...

Create a named temp file in Java

I want to be able to create a temporary text File in Java to display on screen, but using File.createTempFile() does not give me enough control over its name. Any thoughts here? ...

Can't create file in Ada 95

Hello, I'm trying to follow a standard reference for opening files but running into a constraint_error at the line when I call Ada.Text_IO.Create(). It says "range check failed". Any help appreciated, here's the code: WITH Ada.Text_IO; WITH Ada.Integer_Text_IO; USE Ada.Text_IO; USE Ada.Integer_Text_IO; PROCEDURE FileManip IS --Vari...

SQLite file locking and DropBox

I'm developing an app in Visual C++ that uses an SQLite3 DB for storing data. Usually it sits in the tray most of the time. I also would like to enable putting my app in a DropBox folder to share it across several PCs. It worked really well up until DropBox has recently updated itself. And now it says that it "can't sync the file in us...

On MacOSX, in a C++ program, what guarantees can I have on file IO

I am on MacOSX. I am writing a multi threaded program. One thread does logging. The non-logging threads may crash at any time. What conventions should I adopt in the logger / what guarantees can I have? I would prefer a solution where even if I crash during part of a write, previous writes still go to disk, and when reading back the lo...

jQuery Single File Upload using HTML Input within a Dialog Boxes

Is there a simple way to upload a single file through HTML input type file with JQuery UI's dialog box using $.post? Hope this makes sense... ...

Android : How to Remove all capital letters from image filenames before importing into Eclipse

As you know, you can't have capital letters in your image filenames that you use in your Android project (Ressource/Drawables folder). I've got hundreds of small images (GOOG.GIF as an exemple) that I need to import into my project (I usually do a simple drag and drop from a desktop folder into Eclipse). So here's the question : How ...

Can Capistrano only move new files?

This is not a ruby/rails project deploy. I have the following situation and I would like to know if Capistrano can solve my problem, or if you know something more proper. A host Windows machine, with ruby installed and capistrano. This machine have some files in a folder, that will be updated (all or just some). The goal is to sync the...

Running a Java program with input from a file

I am writing a program that reads the input from a file and then prints it to the screen. When I run it without taking the input from the file, it works perfectly fine. However, every time I try to run it from the file it gives me an "Exception in thread "main" java.util.NoSuchElementException: No line found at" error that occurs every p...

Open a file in flex 3

Hi, How can I create a .txt file using flex 3? And I want to write some datas in to this file...... Is it possible? Any one can help me? Thanks in advance.. Nimmy ...

How to allow a provider to upload a file in Amazon Mechanical Turk?

I have search everyone for this answer. I just need the user to upload a single image file but the HIT templates don't have a way to do this? ...

How to process <input type="file" name="test1[f]" /> in PHP?

var_dump($_FILES) gives the following: array 'test1' => array 'name' => array 'f' => string 'ntuser.dat.LOG' (length=14) 'type' => array 'f' => string 'application/octet-stream' (length=24) 'tmp_name' => array 'f' => string 'D:\wamp\tmp\php223.tmp' (length...

Find all files in iphone project

I'm curious if there's a way to search for files in the iPhone's directory ( the location is irrelevant). I am wanting to load in addresses from text files. The thing is additional files may be added and I want to dynamically be able to find the files and load in the data without hardcoding the file names to load in. Thanks a bunch! ...

How to pass a very long string/file into RESTWebservice JAX-RS Jersey

Hello All, I wrote a RESTful webservice using JAX-RS API, that returns an XML string. I am trying to write another RESTful webservice that takes in this XML string, does parsing of it using DOM and extract particular things I want. The XML string happens to be very long so I do not want to pass it as a @QueryParam or @PathParam. Say I...

how to get file from a passworded area using PHP

hello I want to make a script that takes a URL to a file and will import that file to a specific folder in my web server how to request a file if it's in a passworded area, i have an account "username/password" but how can i make the request to that file ? ...

How to publish web service produced data file accessible via browser

I need to make available to browsers data file produced by my web service method. Indeed the web service method should return url to produced file. I'm working with axis2 on tomcat. ...