EDIT: Optimization results at end of this question!
hi, i have a following code to first scan files in a specific folder and then read every file line by line and after numerous "if...else if" write new modified file to another folder with the name name as it was when opened.
The problem is that writing a file line by line seems to be ...
Using the 3rd party tapestry-upload component, I can upload a File from the client on the server.
Using the chenillekit's thumbnail component, a can make a thumbnail from an Asset.
How can I convert my File into an Asset in order for the Thumbnail component to provide me the image thumbnail ?
...
Hi,
I am trying to optimize a class that serializes objects in binary format and writes them in a file. I am currently using a FileStream (in sync mode because of the size of my objects) and a BinaryWriter. Here's what my class looks like:
public class MyClass
{
private readonly BinaryWriter m_binaryWriter;
private readonly S...
Hi!
I am using TortoiseHG for source code control in Windows, I forgot to edit the ".hgignor" file, and now I have a huge folder ".hg" which I know it's because of DLL and EXE and PDB files which I do not need them. Now changing the ignor file does not remove those files.
What should I do for deleting these files completely from my Tor...
I tried <input type="file" value="path..." /> but not working.
How to fix?
...
Hi,
I'm trying to project a file into memory to operate with it. The file contais structs so I'm trying to use a pointer to the start of one struct and then read it and modify some variable.
The problem is that the time of execution is high and I suppose that using mmap the time will be less.
This is the code, any suggestion?
#include ...
Hi,
How to restrict a file upload time limit in php i.e I have to upload only video files which are of time 1 and 4 minutes if user upload more than 6 minutes only 4 min file will be uploaded on server.
...
hey how can i search for a file in HDD ,
example i wanna search for a file settings.ini in my computer .
...
I'm using the jQuery Form Plugin on a big ass form which includes some file fields. The back end is Ruby on Rails.
I'm having trouble getting Rails to recognize the POST request type to be 'text/javascript' even though I believe I am setting it correctly.
The form looks like:
<form id="listing_form" method="POST" enctype="multipart/f...
I'm looking for a way to pass in a FILE * to some function so that the function can write to it with fprintf. This is easy if I want the output to turn up in an actual file on disk, say. But what I'd like instead is to get all the output as a string (char *). The kind of API I'd like is:
/** Create a FILE object that will direct writ...
In order to refer to a local DTD when using PHP SimpleXML, I need to convert the absolute path into a file type URI. For example, convert /home/sitename/www/xml/example.dtd to file:///home/sitename/www/xml/example.dtd.
In the example given, it is easy enough, since all that is required is to add the 'file' scheme in front of the path. ...
I love the pleasure of dealing with XML files with XMLBeans objects... Now working with 834 files, i wonder if its a similar tool for 834 files
A flat file object will be helpful also
thanks
Chung
...
Hi guys,
I've got a problem with my VBA (you guessed it).
I took code from this post:
vbaexpress.com/kb/getarticle.php?kb_id=405
and added in:
wilmott.com/messageview.cfm?catid=10&threadid=40372
Basically, first code would output to a worksheet, but as I theoretically could breach the 65k rows limit, I'd like to output to a csv inste...
HI,
This makes no sense, but for example if i downloaded a file to your /Downloads folder and i wanted to run file:///.../Downloads/myfile1.txt i could just go:
window.location = "file:///.../Downloads/myfile1.txt;
But if i had say 10, or it was generated by a script.. how could i do effectively this.. open ...myfile1.txt => ...myfile...
I have a intranet site running PHP 5 that needs to list a folder containing only Excel files.
Ideally the user needs to be able to input some search criteria (ie date) and the files would be filtered into a list of hyperlinks. These hyperlinks could then be selected to download the excel file.
What I have so far is:
//get search para...
I've written a command line utility that uses getopt for parsing arguments given on the command line. I would also like to have a filename be an optional argument, such as it is in other utilities like grep, cut etc. So, I would like it to have the following usage
tool -d character -f integer [filename]
How can I implement the followi...
Hello!
I am quite new to ruby but enjoying it so far quite immensely. There are some things that have given me some trouble and the following is no exception.
What I am trying to do here is create a sort of 'super-directory' by sub-classing 'Dir'. I've added a method called 'subdirs' that is designed to list the directory object's fi...
Please look through the below code,
// A.java
File file=new File("blah.txt");
FileWriter fwriter=new FileWriter(file);
PrintWriter pwriter=new PrintWriter(fwriter);
//B.java
File file=new File("blah.txt");
FileWriter fwriter=new FileWriter(file);
BufferedWriter bwriter=new BufferedWriter(bwriter);
What is the difference between these...
Hi!
I need to write a ByteArray to a file on local disk with Flash AS3. The flashapplication is run locally (it's a projector exe).
I found the FileReference class with the save() function which works perfect. The only problem is, that this function opens a filebrowser and let's the user select where to store the file. However - i have...
IS THERE IS ANY Solution for My Problem
Hi all,
I want to read a PDF file having lots of text, images, tables in it. I want to read the entire file content by content page by page, from top to bottom.
For example:
The top of the page contains the Heading
Then on left hand side the contents and on the right hand side images
So I fir...