I have a ftp task that takes files from a server looking for a especific file name generated with a expresion and its working fine. But, now i need to download every file in a specific folder no matter the name it has, but the ftp task ask me for a specific file name. How can i do this.
tnks.
...
I often have a need to create input files for batch processes and to validate outputs from similar processes.
The format of these files varies, e.g. they could be fixed-width, csv or sometimes XML.
In the past I have created a little application in C# to help me work with a particular task. The application generally consists of a TreeV...
ofstream osCtrs("cts.txt",ios::out);
if (osCtrs.is_open()){
for(unsigned ci = 0; ci < k; ci++){
KMpoint& x = ctrs[ci];
for (unsigned di = 0; di < dim; di++)
{
//osCtrs << x[di];
osCtrs << "what is happening?";
}
}
osCtrs.close();
}
anything wrong?
file is created, but...
Is it possible in java to create a file without extension
...
In Moodle 1.9.7, I need to allow the teacher to upload a file in the admin panel of a brand new assignment plugin.
When overriding the *setup_elements* function in my assignment.class.php, I'm doing something like:
$mform->addElement('file', 'foo', 'Label');
$mform->setHelpButton('foo', array('foo', 'Label', 'assignment/type/my_assignm...
Dear,
i am using smart upload for uploading the file, when i using this, when concurrent users are uploading the file, jboss application server getting outofmemory error.
can you tell me any of the upload process and suggest me.
thanx,
...
I am writing an application needs to use large audio multi-samples, usually around 50 mb in size. One file contains approximately 80 individual short sound recordings, which can get played back by my application at any time. For this reason all the audio data gets loaded into memory for quick access.
However, when loading one of these f...
hello ,
I have a file on a remote server and I want to read this file.
lets say the files location is:
string filePath = @"\\192.168.101.15\c$\program files\xxx\test.xml";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(filePath);
This code is for sure throwing an error:
Logon failure: unknown user name or bad password.
How can ...
I have this code..
String you = buf.readLine();
Log.d("STRING", ikaw);
StringTokenizer st = new StringTokenizer(you);
double lat = Double.parseDouble(st.nextToken());
double lng = Double.parseDouble(st.nextToken());
int type = Integer.parseInt(st.nextToken());
...
I need to 'embed' a file as a string of bytes directly in AS3 code rather than calling it as an external resource.
So this works fine:
var testString = "537563636573733a20537472696e672072652d656e636f6465642e";
var testArray:ByteArray = new ByteArray();
var len:uint = testString.length;
trace("testString LENGTH: " + len.toString());
f...
Directory.GetFiles() returns all files, even those that are marked as hidden. Is there a way to get a list of files that excludes hidden files?
...
Is there any fast algorithm that allows to compare two files (for verification purpose) without need to read the entire contents?
...
What is Android's file system?
...
I have a file and need to ensure it exist before inserting a row into the db. After i insert i need to use the PK as part of the filename and move it into another location.
How do i check if it exist then lock it so it cant be deleted until i can insert into the db then proceed to move the file without it being deleted upon releasing th...
I store file’s attributes (size, update time…) in database. So the problem is how to manage transaction for database and file.
In jee environment, JTA is just able to manage database transaction.
In case, updating database is successful but file operation fails, should I write file-rollback method for this? Moreover, file operation in ...
I have a file called error.log on my server that I need to frequently truncate. I have rw permissions for the file. Opening the file in vi > deleting all content > saving works (obviously). But when I try the below
cat /dev/null > error.log
I get the message
File already exists.
Obviously there is some kind of configuration done o...
Currently I'm using this:
f = open(filename, 'r+')
text = f.read()
text = re.sub('foobar', 'bar', text)
f.seek(0)
f.write(text)
f.close()
But the problem is that the old file is larger than the new file. So I end up with a new file that has a part of the old file on the end of it.
...
Hi,
I want to be able to configure the 'RowDelimiter' and 'HeaderRowDelimiter' values used by my Flat File Connection Manager using my XML configuration file.
I've used XML config files with SSIS packages many times without any problems, and so I know my config file is correctly formatted and is being picked up by my package, but the p...
Hello guys,
I'm developing two Ruby gems, one is a framework, the other is an application.
My main app's class inherits from a framework's class.
The class defined in the framework have some file loading methods that rely on __FILE__ so subclasses can load resources relative to their path.
What I want is for the subclasses to be able ...
I want to create a program which opens my file onClick by providing its content in byte[] format in new page.
Please help.
...