I have created small socket programs (client/server). Client will transfer all formats of files to server.The problem i am facing now is - I read mp3 file in binary mode and sent to the server. Server reads the content from the buffer and create a file.But when i am trying to open the file, it not getting open. But size remains same as o...
I used the following method to download an mp3 file at :
http://online1.tingclass.com/lesson/shi0529/43/32.mp3
But I got the following error :
java.io.FileNotFoundException: http:\online1.tingclass.com\lesson\shi0529\43\32.mp3 (The filename, directory name, or volume label syntax is incorrect)
public static void Copy_File(String Fro...
Could someone can explain me why can't I see a file copied to C:?
Note that if I try to copy it again to the same location, the system ask me if I want to override it.
Not a matter of weird attributes, or common stuffs ;)
Hope I can find an answer here...
...
I am writing a PHP script (to be run from command line) to parse hundreds of large JSON files. All of these files are in a directory. Initially I was reading the files one by one and parsing them in the same script, but ran out of memory quickly. The other way to do it is to have two scripts, one to read the directory, get the list of...
Hi Guys,
I am trying to create my own web interface for the plowshare utility, managed to get the script running okay so far, but I am a bit unsatisfied by the way the results are being displayed. Currently I am loading the text file into an array and display it and refresh the page from time to time to load the new results. The text fi...
Hello
I have made a batch file to generate an executable file(.exe).Now my requirment is that in the process of generating the executable file my batch file should delete the other generated files such as .o and .d except the .cpp files.can any body specify code or explain how it can be done.
...
Hey all,
I am having trouble with this one. I have an xls file which contains a single sheet of data. In my main application, a different workbook, I want to open this single sheet xls file and copy the sheet into the current workbook.
I can do it if I select the range on the source file to copy but this single file may change so I...
Hi,
I want to create a Lotus Notes agent that will run on the server to generate a text file. Once the file is created, I need to send it to a remote server.
What is the best/easiest way to send the file to a remote server?
Thanks
...
I have a parent process which forks out a child to perform execv().
I need the output given by execv() to stdout to be displayed onscreen as also copied to a log file.
How do I write the same output to both stdout & a file, without using pipes or tees?
...
Hello,
I'm currently building a script that will allow a user to download a file via a URL without actually seeing the filename or where the file is stored. So far I have everything built out, but I need to know how I would go about calling the file to open and download. I currently have a working version (code below), but for some re...
i got this really wierd problem, i'm writing my results to an output file, i use functions A B and C i activate them in that order, the results in the file is printed in a different order, first from A than from C and after that from B. i just can't understand why the results printed in a different order than the activation order. thanx....
Is it possible to read the file system beyond the application sandbox? Not the area for other applications, but folders like photos, video, music etc.
Would the "Assets Library Framework" help in this case? Can I use a file:/// NSURL etc.? T...
Is there any way I can create a text file on the client side and prompt the user to download it, without any interaction with the server?
I know I can't write directly to their machine (security and all), but can I create and prompt them to save it?
...
I've got a Maven2 project, where I use assembly plugin. Everything would be just fine if created assembly file name wouldn't ended with format extension (ex. ".zip"). I specified in plugin configuration a fileName parameter and setted appendAssemblyId to false. I have already spent few hours on that problem... Any idea?
...
In .Net 3.5, I have the following code.
If File.Exists(sFilePath & IndexFileName & ".NX") Then
Kill(sFilePath & IndexFileName & ".NX")
End If
At runtime, on one client's machine, I get the following exception, over and over, when this code executes
Source: Microsoft.VisualBasic
TargetSite: Microsoft.VisualBasic.FileSystem.Kill
Mess...
Is there an easy way to run a search for all the stored procedures in the database to see if they are anywhere in C# code in Visual Studio?
I am using Visual Studio 2008 (C#) with SQL Server 2005. I just want to query the database and return a list of all the stored procedures (I can easily do this). Then I want to search through an en...
Can a batch file change the system date; save file with attributes; change date back to current date?
Goal to save MYFILE.TXT with the date of 01-01-2010
using Batch commands.
I have tried to set date=01-01-2010
and then save the file, but it didn't work.
Is this impossible?
@echo off
rem to Run this Batch file as administrator
da...
I would like to write a C++ function, on Microsoft Windows, that spawns a process and returns, in addition to the process's termination status, a list of all the files the process read or wrote. It should not require any cooperation from the spawned application.
For example, if the program spawned is the Visual Studio C++ compiler, the ...
I write code to delete a file, just like:
File logFile = new File(fileName);
deleteSuccess = logFile.delete();
But the Veracode: give me some warning about the resource is not released. I want to know how to release the resource after delete a file.
The Veracode error is like follows
Veracode:
Description
The application fails to ...
I have an xml file xyz.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<legends>
<legend>
<number>1</number>
<contentString>abcd</contentString>
</legend>
<legend>
<number>2</number>
<contentString>efg</contentString>
</legend>
<legend>
<number>3</number>
<contentString>hij</contentString>
</legend>
</legends>
I am trying...