file

How to save xslt applied xml file in .net compact framework webbrowser in PDA

Hi please help me for windows mobile ... I am using stylesheet in an xml file and load this xml file into webbrowser control in PDA application made in C#(.net 2.0 compact framework) . Now I want to save this xml file with changed node value with same or diffent file name. Javascript for document.write is not working in PDA. WebBrowser c...

Jar files and FAT32

I am doing some analysis for a chunk of a desktop app we're working on. One requirement is that it be able to do i/o of some legacy file formats, which in practice are running as large as 800Mb each. An import might reasonably be expected to be on the order of 5Gb in size. Ideally, I'd just stick whatever files I want into a jar file,...

Flex Write File

I checked in the API, that writing a file is only in Flex Air. Despite of that, is there still a way in Flex to write a file on the server or on the client machine ? More concretely, it's because I have a String and I will decode it by mx.utils.Base64Decoder to a doc. And I need to open it by Word directly on the client side, or write ...

Cause an error in MSBuild if a file exists

We have a process that runs prior to our nightly builds. If the process fails it generates a text file. All I need to do is check to see if the file exists, and if it does, cause a failing MSBuild. I currently have tried the following: <CreateProperty Condition="Exists('C:\Process\Fail.txt')" Value="false"> <Output TaskParame...

silverlight access to file path

I have a Silverlight application and I need a way to find out the physical path for a selected file. Note: I know about security restrictions that obtaining the path is prohibited in client. I have in mind a solution but I am not sure it works: silverlight app is running in a page together with an ActiveX component that is allowed to d...

HTTP uri in a GTK# FileChooserDialog

Can GTK#'s FileChooserDialog be used as a unified file/URI dialog? I'd like it to accept http/https/ftp URIs without "rewriting" them (prepending local directory). Even if I set LocalOnly=false and paste a http://.... uri into the text box inside the filechooser, I cannot get the original entry. Local directory is always prepended to th...

How to save Chinese Characters to file with java ?

I use the following code to save Chinese characters into a .txt file, but when I opened it with wordpad, I can't read it. StringBuffer Shanghai_StrBuf=new StringBuffer("\u4E0A\u6D77"); boolean Append=true; FileOutputStream fos; fos=new FileOutputStream(FileName,Append); for (int i=0;i<Shanghai_StrBuf.length();i++) fos.write(Shanghai_St...

read a file using Scanner: Why am I getting an error when using Scanner for read files in java ?

This example demonstrates using Scanner to read a file line by line (it does not perform a write operation) I don't know why I get an error when I try to compile. Could somebody explain the reason to me?. I'm using jcreatorLE and JDK 1.6 to run my program: import java.io.*; import java.util.Scanner; public final class File_read { pu...

How do I get File Type Information based on extention? (not MIME) in c#

Hi. How do I get the general File type description based on extention like Explorer does it? So not MIME but the information that the end-user sees, like. .doc = Microsoft Office Word 97 - 2003 Document .zip = ZIP File .avi = Video File. And how can I get the 'secondary' information that seems to be available, which I guess it not ext...

How can I safely write to a given file path in Cocoa, adding a numeric suffix if necessary?

We want to write to "foo.txt" in a given directory. If "foo.txt" already exists, we want to write to "foo-1.txt", and so on. There are a few code snippets around that try and answer this question, but none are quite satisfactory. E.g. this solution at CocoaDev uses NSFileManager to test if a path exists to create a safe path. However, t...

C# File Browsing w/ Checkboxes

Ok, so this question kind of builds on my last one. I am trying to build a "file browser" but it will do other things. What I am trying to accomplish: 1)Have a tab dedicated to listing files just like "Browse Files" except I want to be able check certain files and directories. I also want the functionality of "Browse Files" as ch...

Problem writing int to binary file in C

I need to write data to a binary file using C's I/O functions. The following code causes a runtime exception : #include "stdio.h" int main(int argc,char* argv[]) { FILE *fp = fopen("path_to_file.bin","wb"); if(fp == NULL) { printf("error creating file"); return -1; } int val = 4; fwrite((const void*)val,s...

file.asc and file.far

Could you let me know the difference between .asc and .far file extensions? What are the contexts in which each is used, and can .far be used in place of .asc? ...

Getting directory path to .class file containing main

Is it possible to get the path to my .class file containing my main function from within main? ...

C++ Header file that declares a class and methods but not members?

Is it possible to make a C++ header file (.h) that declares a class, and its public methods, but does not define the private members in that class? I found a few pages that say you should declare the class and all its members in the header file, then define the methods separately in you cpp file. I ask because I want to have a class th...

How does one chunk files using actionscript (flex)?

I am doing file transfers, but the filereference API doesn't support file chunking. Has anyone done this before? For example, I would like to be able to upload a 1 gig file from an AIR client to a custom PHP/Java/etc. service. ...

Compiling an XML file into a binary

I want to parse and XML file in an iPhone app without going to disk for it. Can I do this? How? I have included a TXT helpfile in an app using MSVC. I put the XML file in a Folder/Group named Resources in the project. I have the XML file in the proj directory. I right clicked on Resources folder and selected add -> Existing File. I righ...

VB.NET getting the attributes of a .wav file

How do I get the attributes of a .wav file using VB.NET. In particular, I am looking for a property which has the Duration of the .wav. Cheers ...

How do I count the characters, words, and lines in a file, using Perl?

What is a good/best way to count the number of characters, words, and lines of a text file using Perl (without using wc)? ...

Dynamicly generated file on server does not release process handle .NET on Windows Server 2003

I have build a web application which the user can request a report which is generated on the server and sent back to the client. The process works fine and sends the file back to the client, however we are unable to open the file. Further investigation reveals that a process on the server still has a handle on the file by the IIS Applica...