file

Robocopy filter not working?

Hi I'm trying to use robocopy to copy a single file from my computer to another computer over the network. The file I'm going to copy is named setup.exe and the directory it rests in also has a directory called "setup". I only want to copy over the executable, so I tried applying a filter to the robocopy command at the end listing the fi...

Dragging files out of web page into your local disk?

Hi, I just read this blog post and it stated that: Google is now working on reversing the process -- allowing us to drag files out of Gmail messages and drop them onto our local folders.onto our local folders. My question is: how is this possible? ...

Reading binary file into array in Objective-C [iPhone]

Hey I want to read binary file on my iPhone. I have .txt file which stores information about an array: int[6000][9] How can I put this data into an array in my code? I tried this: int mapa1[6000][9]; NSFileHandle* file = [NSFileHandle fileHAndleForReadingAtPAth: @"level1.txt"]; [[file readDataOfLength:4] getBytes:mapa1]; mapa1 = NSSw...

File Upload in MVC using JQuery Multifile Upload plugin & an iframe

Hi folks, this is really weird. I am able to upload files and save it in database when working locally on my MVC project (using localhost) but when the project is deployed on the server, i am getting directory not found exception (System.IO.DirectoryNotFound). It lists my local file path in the error log on the server. I am trying to sa...

Cross Platform File Exists & Read In C++

Hi How can I write two simple cross platform (Linux, Windows) functions for reading text file, and determine if some file exists? I don't want to use a big library like Boost.IO for that. It's a very small plugin for some software and I don't think it's neccsary. Thanks. ...

Reading a number from file C++

I have a file with a simple number, for example: 66 or 126 How can I read it to a int value in C++? Note that the file may also contain some spaces or enters after the number. I started like so: int ReadNumber() { fstream filestr; filestr.open("number.txt", fstream::in | fstream::app); filestr.close() } How to co...

Java file management on process forking

My guesses were wrong, and had nothing to do with the answer. This question is no longer valid. See my answer. Sorry about this poor question. Tl;dr Version Why can't a Java process find a certain file, until another process – the process that created that file – has finished executing. Can this be worked around? Longer Version I hav...

Serve DXF (and other types) files in IIS

I've got a problem with one of the pages within a website. This page will serve images according to the selection a user makes like PDF, GIF, DWG and.. DXF I understand why PDF and GIF will attempt to open in a browser, but the DXF files will (using firefox and chrome) try to open inside the browser window too - unsuccesfully, but attemp...

Creating and Editing Excel Documents (.csv) with Java

Hello everyone! For this project I'm working on, I want to take multiple excel sheets and then merge them into one, manipulating the data as I please to make everything a little more readable. What would be the best way to open files, read their contents, store that content, create a new file (.csv), then paste the information in the o...

Do applets and the browser share a cache?

I have a third party applet that makes use a csv file, let's call it file.csv, and makes use of all of the columns. I also have a third party swf object that makes use of file.csv but only makes use of 20% of the columns. The initial decision was to use the same file for both because it would result in easier maintenance. My question is...

Binary file parsing: performance

Hello; I have a large binary file to parse, and i am not sure about which language to use in order to improve the performance. Initially, i was going to use C# WPF as GUI, and a c DLL to do the parsing. but my target PC is 64 bit machine. and i had trouble to set up a c DLL project in VS 2008. so i am thinking if i should move to c++ or...

reading from MySQL is faster or reading from a file is faster??

HI I got a doubt I have seen reading mysql data is slower in case of large tables...I have done lots of optimization but cant get through.. what I am thinking is will it give a better speed if I store data in a piece of file?? off course each data will be a separate file. so millions of data = millions of file. I agree it will consum...

Parse a task list

A file contains the following: HPWAMain.exe 3876 Console 1 8,112 K hpqwmiex.exe 3900 Services 0 6,256 K WmiPrvSE.exe 3924 Services 0 8,576 K jusched.exe 3960 Console 1 5,12...

Binary installation file

Hi, i am not really getting an idea on how a .bin file is being created. The JDK for Linux platform ships in the form of binary executable file (jdk-6u20-linux-i586-rpm.bin); how can one create such deliverable for their own project? Please give me some directions. Thanks, -Vijay ...

PHP: Move file from domain to subdomain

Hi guys, I have a site on a domain, let's call it "mydomain.com", where people can log in. This domain has a subdomain sub.mydomain.com. When the user uploads a file on the main domain, I want to move it to the uploads folder on sub.mydomain.com. The folder I want to move the file to has full write/read privileges. My code that upload...

Django download file empty

I am writing a simple function for downloading a certain file, from the server, to my machine. The file is unique represented by its id. The file is locatd corectly, and the download is done, but the downloaded file (though named as the one on the server) is empty. my download function looks like this: def download_course(request, id):...

Upload problem (permission denied)

I'm currently using the file component in the vork framework to upload a file and I keep getting this error: Warning: move_uploaded_file(/uploads) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/rto-vork/mvc/components/file on line 105 Warning: move_uploaded_file() [function.move-uploaded-file]: Unab...

How to create a file in remote host along with the creation of directory using ssh

Hello, I have a file say /a/b/c/file in my host. I want to create a file on remote host in directory say dest. Now the question is, how do I create a file in remote host as /dest/a/b/c/d/file using perl script and using ssh. Any idea how do I create directories in script.? Thanks. ...

JFile Chooser decide if Directory or File is selected

My main goal: if the user selects a directory it scans the whole folder for mp3 files and returns them. If he selects some mp3 files it returns them. To return the selected files was an easy one but to scan the directory for mp3's isn't as easy as I first thought. And I think to do that I first new to decide if the user selected a fil...

Visual Studio 2010 refresh not working

In VS 2008, I used to be able to create a file on the file system (like a .cpp file, for example), and then I could click the refresh button in VS and the file would show up. I have "Show All Files" checked. Note by "create a file on the filesystem" here, I mean like going out to windows explorer and creating a new file, in other words, ...