Okay I'll try to be direct.
I am working on a file sharing application that is based on a common Client/Serer architecture. I also have HandleClient class but that is not particularly important here.
What I wanna do is to allow users to search for a particular file that can be stored in shared folders of other users. For example, 3 us...
I have an app where the user can choose a profile pic using images stored on the phone or SD. Do I have to write my own file explorer for this? I've seen a couple examples on anddev, but wasn't sure if there is another way. Thanks.
...
I have the following two classes:
import java.io.*;
import java.util.*;
public class User {
public static String nickname;
public static String ipAddress;
public static ArrayList<String> listOfFiles;
public static File sharedFolder;
public static String fileLocation;
public User(String nickname, String ipAddre...
I'm reading a file and I either read a row of data (1600 sequential reads of 17 bytes) or a column of data (1600 reads of 17 bytes separated by 1600*17=27,200 bytes). The file is either on a local drive or a remote drive. I do the reads 10 times so I expect in each case to read in 272,000 bytes of data.
On the local drive, I see what ...
Hi,
I'm working in an application using Tomcat and servlets.
There is a servlet (audioProcess) that receives the name of an mp3 file, that is played. This servlet also processes the mp3 file and stores the result in a txt file. The content of this txt will be replaced when the audioProcess servlet is invoked again (with a different mp...
I'm trying to read a one line file character by character using java.util.Scanner. However I'm getting this exception":
Exception in thread "main" java.util.InputMismatchException: For input string: "contents of my file"
at java.util.Scanner.nextByte(Scanner.java:1861)
at java.util.Scanner.nextByte(Scanner.java:1814)
at p008...
Hi Guys...
I have a lot of file in .pdb format, some of them downloaded, but until now i can't using or read what the inside, so i looking for how to read, view the .pdb file format from MS Windows XP.
any of you that's may know how to open it?
For any input would be help me and Many Thank You 1st.
...
Hi There,
In jsp/java how can you call a page that outputs a xml file as a result and save its result (xml type) into a xml file on server. Both files (the file that produces the xml and the file that we want to save/overwrite) live on the same server.
Basically I want to update my test.xml every now and then by calling generate.jsp th...
My project generates some text/binary files. If I run it normally, some files will have a pretty low size ( which indicates something went wrong ). If I run it from debug mode ( stepping through code ), the files will be generated correctly.
What can cause this behaviour? I'm pretty sure I don't have any unclosed files.
EDIT: I've gone...
I want all the features of file.renameTo in java but without the source file getting deleted.
For eg:
Say I have a file report.doc and I want to create the file report.xml without report.doc getting deleted. Also, the contents of both the files should be the same. (A simple copy)
How do I go about doing this?
I know this might be trivia...
Hi,
I am creating a back up system for a content management system. This backup grabs a copy of the database and all of the files in a 'userfiles' folder, tars it up and allows the client to download it.
This works fine.
I am having issues with importing the file. The files in tarball keep their location. On my Mac I am using XAMPP fo...
I'm making a Rails template file as introduced below:
http://asciicasts.com/episodes/148-app-templates-in-rails-2-3
I have a big file I want to make, so instead of doing:
file "bigfile.txt", <<-EOF
content of the file...
EOF
I want to read the content from another file. What I have now is:
file "public/stylesheets/sass/960.sass...
I have a picture box and if I use Clipboard.SetImage(PictureBox.image) Then I can only paste the image into things like Paint and MS word. I can't paste it as a file into a folder/desktop.
So how can I copy the image to to the clipboard and if gets pasted to a folder then it becomes a file?
...
Is anyone aware of a good, general purpose file preview component for MFC/C++ desktop applications?
Specifically, I'm looking for a component that I could embed in my application that would allow a broad range of file types (text files, multimedia, etc.) to be previewed without the need for original applications (such as MS Word, etc.) ...
We are having 7 different components and 7 different enviournments where we install all of these components.
So when these components are installed on these different env there are chances that we missout changing the server names in urls.
Any suggestions of managing these many eviournment config files in nicely fashioned way.
...
Hi all,
What is the easiest way to sync or replicate files over a network? I am running a few servers in a rack for load balancing and wish to mirror content.
For example, I have Server 1 where I do my FTP uploads to. Server 2 is another node. The manual way is for me to also do FTP uploads to Server 2 but I am sure it can be done auto...
Much like this:
http://www.w3schools.com/PHP/php_file_upload.asp
But I'd like to store the contents of the file into a variable. Is there a shortcut to this? (instead of saving it to a temp file, then opening the temp file and reading it into the variable)
...
When I choose an image and push upload, I get this error in my controller:
Notice (8): Undefined index: File [APP/controllers/garage_car_images_controller.php, line 22]
I've also noticed that the $form->create line shown below does NOT generate form code in the inspected html. This is VERY weird.
Any ideas how to fix this? Thanks!...
Hi, I am using jboss, eclipse and svn together. I have to files in my test folder: test/create.jsp and test/data.txt . What I want to do is when I call my create.jsp it will update my data.txt . Obviously I want my data.txt to stay where it is as other scripts are tryong to read from it.
I have tried dozens of new ways to put the path ...
Hi,
I wonder if we can get the file name including its path from the file object that we have created for the file name in C and in C++ respectively
FILE *fp = fopen(filename, mode); // in C
ofstream out(filename); // in C++
ifstream in(filename); // in C++
Thanks!
...