Hi,
We have a NTFS volume used for storing large number of files(currently at 500GB and growing). Currently the same is accessed via a file share by a single application. We are looking at options to scale out the file server for access by multiple applications. The other applications would only be reading files and not performing any...
Hi Everyone ,
Iam working in c++ .i have an problem while run an application ,which have my dll within it ,My dll code is suitable to application (needed process).i wrote a log file (xml file) throughout application using fopen within all function(dll source) ,here i receive exception like "cannot access the file ,due to using by anot...
I have a very large set of binary files where several thousand raw frames of video are being sequentially read and processed, and I’m now looking to optimize it as it appears to be more CPU-bound than I/O-bound.
The frames are currently being read in this manner, and I suspect this is the biggest culprit:
private byte[] frameBuf;
Bin...
Hi there,
as I was not able to find a function which retrieves the amount of lines a file has,
do I need to use
$handle = fopen("file.txt");
For($Line=1; $Line<=10; $Line=$Line+1){
fgets($handle);
}
If feof($handle){
echo "File has 10 lines or more.";
}Else{
echo "File has less than 10 lines.";
}
fclose($handle)
or something si...
The plugin should allow browse and delete picture in one file folder.
Thanks.
...
Hello,
How to change the contents of .doc file in Resource folder in XCode?
Like how we have the pathForResource to read the contents of file, do we have any method to write to or overide the contents of .doc in resource?
Plz help..
Thank You.
...
How do I read the contents of .doc file [not from resource file] into NSString in Objective-C?
I tried doing it in this way:
NSString *str = [NSString stringWithContentsOfFile:@"/User/home/Documents/config.doc"];
NSLog(@"Contents of file : %@",str);
OUTPUT:
-+-% [encoded format]
output is in encoded format
How do I solve this probl...
You have a library, and one of the function in the library provides a functionality that, among other things output a file (maybe to different paths in every execution). The content and the name of the file is constant in each execution. What is the best way to carry this out? declare the content of the file as a string and print it each...
Consider I modify the way files are stored in a system, where every file name would actually be the table name in a database and each line in the file would actually be the rows of that table. Would that increase overall system speed? would it be worthwhile? what are the tradeoffs?
To further clarify the distinction between this and the...
My WCF service contract has to methods like these:
[OperationContract]
string GetFile(int id);
[OperationContract]
void UploadFile(int id, string text);
GetFile returns a text of a file and UploadFile sends some file's content to a server.
There is a strange behavior, when file's size is about few MB (4.37 MB in my ...
I have a directory, C:\myDir.
under this directory, there may be folders and various files
How can I "loop" through this directory and build up a File array of all files with a .properties extension?
I want to do some processing on these files, the reason for a File[] is to keep it dynamic (so additional properties files added in the ...
I have a text file that is around 1.7MB that has a list of words that I need for my application. I need to have it loaded into an array when the page loads and then be available to other PHP files that AJAX requests are made to. Right now I am loading it into an array on page load and then storing it in a session so that the AJAX file ha...
I have a xml file that needs to be read from many many times. I am trying to use the Parallel.ForEach to speed this processes up since none of that data being read in is relevant as to what order it is being read in. The data is just being used to populate objects. My problem is even though I am opening the file each time in the thread...
This should be simple, but what is the correct syntax for an Oracle sqlldr control file in order to specify tab delimited/separated data?
FWIW, I found the file was UTF16 and not UTF8, and was editing fine but would introduce null bytes as Oracle read the control file. Can't even replicate today.
...
Hi all
I have two questions.
(1) how to make move text file from folder:
C:\Data\inbox\test.txt
to target Folder?
C:\Data\outbox\test.txt
(2) how to make get list of directory files in Folder?
C:\Data\inbox\
Thank you...
...
InstallShield 2009 Premier, Basic MSI project
I have installed the setup, its installed.
I replaced a dll with a newer one and again prepared the setups(didn't change product code or any other code)
Now running the new setups, it asks for upgrade
I choose upgrade but after completing the setup I notice the dll is not replaced !!!
wh...
Hi,
In an SSIS 2005 package, I have a For Each File Enumerator which iterates through all *.csv files in a folder. The Directory property (and hence Folder) is specified in the VS 2005 development environment. When I run it from VS 2005, the .csv files in the folder get processed and everything works fine.
I set the configuration for t...
I have a simple application which takes a text and password, generates a text writes it in a file then tries to retrieve it and decrypt it. Before the encryption the 'pad' is generated which is a string generated from the password with the length of the text. The problem comes in when I try to retrieve the text, because no matter how I t...
The program is to open a directory and to display the name of the files...
i.e if there is a file..it should say FILE....else DIRECTORY..
but the program displays all the files as directory..
Could anyone pls check the code for any errors....thnx
#include<stdio.h>
#include<dirent.h>
#define DIR_path "root/test"
main()
{
DIR...
I would like to read a (fairly big) log file into a matlab string cell in one step. I have used the usual:
s={};
fid = fopen('test.txt');
tline = fgetl(fid);
while ischar(tline)
s=[s;tline];
tline = fgetl(fid);
end
but this is just slow. I have found that
fid = fopen('test.txt');
x=fread(fid,'*char');
is way faster, but i ge...