file

Gettin files from ftp using integraion services

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. ...

Create a generic application that can read/write formatted text files based on schema

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...

can not write data into file using c++

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...

How to create a file in java without a extension

Is it possible in java to create a file without extension ...

Moodle 1.9.7: Uploading file in assignment admin panel

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...

Out of memory facing whe uploading file using jsp

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, ...

How to perfrom Cross-Platform Asynchronous File I/O in C++

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...

Read file on a remote server

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 ...

how to get end of file(EOF)

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()); ...

File (as a string of bytes) in AS3 code

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...

C# - Get a list of files excluding those that are hidden

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? ...

Fast file integrity verification

Is there any fast algorithm that allows to compare two files (for verification purpose) without need to read the entire contents? ...

Whats Android file system ??

What is Android's file system? ...

safely lock a file then move? windows

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...

How to manage transaction for database and file system in jee environment?

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 ...

How to empty ("truncate") a file on linux that already exists and is protected in someway?

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...

Read and overwrite a file in Python

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. ...

SSIS - How to set 'RowDelimiter' and 'HeaderRowDelimiter' from XML configuration file?

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...

Is there a way to do relative path references from a superclass?

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 ...

Siverlight 4.0: How open a file

I want to create a program which opens my file onClick by providing its content in byte[] format in new page. Please help. ...