I am running into trouble trying to compare and plot two files of different length. In MATLAB I do not know how to plot two vectors of different length in the same x-axis. As one file has some data missing, I want to create a row and put blank space for that corresponding time stamp. Here are samples of data files:
file 1:
date time T...
In order to store a variable dist to a file preferably Excel file, we can use
xlswrite('a.xls', dist)
or
dlmwrite('a.txt', dist, ',')
Problem is suppose the variable dist is in a loop in a program and returns a different value each time the program runs as per the input then each time a.xls is overwritten and I get only the last v...
While implementing XML file reading/writing in my application I saw that when I call XElement.Save("myfile.xml") it will overwrite an existing file.
Is this behavior default for all methods that Save files in C#/ASP.NET or does it depend on the permissions given to ASP.NET?
If my app will be deployed by different people on different ho...
In Perl, how do I test if a file of open by another Perl program? I need the first program to be done before the second program can start.
...
Is there a standard/good way of converting between urls and windows filenames, in Java?
I am trying to download files, but I want the windows filename to be convertible back to the original filename. Note that the query portion of the url is vital, as I will be downloading different pages that differ only in query.
My current hacky ...
This app i'm working on allows the user to take pictures, and saves them locally (a small thumbnail image via Core Data, and the full-size image in the documents directory). I'm finding that writing the image file to the documents directory takes a long time, though -- 8 seconds on my iPhone 3GS, even longer on my iPhone 3G and first-gen...
Hi,
I want to uplaod mutiple image in server.My project is using sitecore.I am using sitercore sublayout to upload the image file. Right now i am using file uplaod control.how to use ajax uploader in sitecore sublayout.
Has anyone used/configure ajax uploader with sitercore sublayout ? Early reply will be great help for me.
Thanks.
b...
How can I use an NSString in a file where that string wasn't created?
ex.
I created a string in thisone.m, but I want to use the same sting (ie the same data) in thatone.m
the data from this string will be coming from a UITextField
...
In .NET is there any API that allows me to restrict some IO operations to the specified path?
For example:
Root Path: C:\Test\
Now I want to call a function like this:
IO.Directory.CreateDirectory("../testing/",Root)
And now I want the API to handle this situation for me and do not create a folder other than the specified direct...
I would like to XOR a very big file (~50 Go).
More precisely, I would like to do so by XORing each block of 32 bytes of a plaintext file (because of lack of memory) with the key 3847611839 and create (block after block) a new cipher file.
Thank You for any help!!
...
Hello, before this I wrote all jquery-code into main fail. Now I want to move it into another js-file. The problem is that it doesn't want work correctly.
Here is an error by FireBug:
$ is not defined
$(document).ready(\n
So, as I understand, I have to initialize $-var... But how?
Thanks.
...
Hi,
How can I check an existence of a file (It is an xml file that I would like to check in this case) with JavaScript?
Thanks,
Burak Ozdogan
...
I am using the File::Copy module to copy a file in Perl:
#! /usr/bin/perl -w
use File::Copy;
copy("somefile.log", "copiedfile.log");
I would like to preserve timestamps (particularly the modification time), but this doesn't appear to be an option.
Is there a straightforward way to achieve this without resorting to making a system ...
I'm trying to have my application read through a text file and look for a string. If the string does not exist, it makes it using println. The only problem I'm having is that it doesn't seem to read the text file. What I have so far is:
PrintWriter itemwriter = new PrintWriter(new FileOutputStream(items));
FileInputStream fstream = new ...
okay, so i have a text file with example content below
line1with some random stuff here
line 2 with something very completely different
line3 has some other neat stuff
line4 is the last line in the textfile
i need to get that text file, delete one line, and leave the REST of the file in tact. and so if i wanted to delete line 2, id wa...
I need to get the size of files. These files range in size from very small to 10's of gigabytes. Are there any c functions that work in both linux and windows to do this? I've seen fileinfo64 but that seems to be windows only and i haven't been able to determine the maximum size supported by stat.
...
Hi,
I have dynamically created a xml string form a JSON object returned from server. I need to give the user to download this as a file so that when the user click the button named export he/she receives a downloadable.xml file and can be save d on local machine.
Is this possible?
--
Mithun Sreedharan
...
File-like objects are objects in Python that behave like a real file, e.g. have a read() and a write method(), but have a different implementation. It is and realization of the Duck Typing concept.
It is considered good practice to allow a file-like object everywhere where a file is expected so that e.g. a StringIO or a Socket object ca...
Like many others I've seen in the Googleverse, I fell victim to the File.exists? trap, which of course checks your local file system, not the server you are deploying to.
I found one result that used a shell hack like
if [[ -d #{shared_path}/images ]]; then ...
but that doesn't sit well with me, unless it were wrapped nicely in a Ru...
I have a link of a file, and I don't know how to add it to imagebutton. I want to see the 'open-save-cancel' , screen when imagebutton is clicked, but imagebutton doesn't seems to be taking the link of file as a file, but taking it as a page url and tring to open the file url as page.
Thanks
...