I'm trying to write binary data files from fortran, but I find the regular file interfaces very limiting, I wonder if Fortran has POSIX compilant functions.
I found this standard: IEEE 1003.9-1992, but I don't know it if is fully supported by most common compilers (or if I have to activate any flags). I can't find any practical informat...
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 ...
Hello All,
I'm trying to create a custom webpart. To implement error handling I would like to write to the eventlog. To do so, I'm trying to use the following code;
protected void btnExceptionTester_Click(object sender, EventArgs e)
{
try
{
throw new Exception("this is a test");
}
catch (...
Hi, I am working on a windows keyboard filter driver and I need to write to a file. I tried using zwcreate,zwwrite, and zwclose but the driver is not running at PASSIVE_LEVEL and I got the BSOD. I have never written a windows driver before. Thanks for the help!
EDIT: Thanks J. Passing!
...
I'm using the following code to write data through a named pipe from one application to another. The thread where the writing is taken place should never be exited. But if r_write() returns less than it should, the thread/program stops for some reason. How can I make the thread continue once write has returned less than it should?
ssize...
I want to make an Applet write to a text file. I think have overcome the security problem with my own certificate, but the text file isn't receiving the output.
My Applet can be seen at tomrenn.com/fallball, and should ask if you trust the certificate.
I'm not sure an Applet can write to a text file within the web hosted contents, so I...
Hello,
I have below code.
FILE *fp;
int a;
fp=fopen("dump.bin","wb");
a = 0xffafbcdf;
fprintf(fp,"%x",a&0x3ffff);
I am trying to dump only 18 LSBits of variable a. But the value dumped in the file is 3bcdf.
My question - Is it not possible to dump/fwrite/fprintf desired number of bits which is not a multiple of 4(nibble) to...
Hi,
I need to update the registry, specifically the Outlook 2003 Master category list to the following key. "Software\Microsoft\Office\11.0\Outlook\Categories"
It is stored as a Reg_binary value and it involves Unicode conversion. I was able to read it successfully but I am unsure how I can write it back. The code I used to read it is ...
Hi I am appending at the bottom of the text file this works on windows but on linux instead of appending to the bottom it appends to the top of the text file. The code i am using is. The code must only use C
FILE *fout;
fout = fopen("dat.txt","a");
fprintf(fout,"&& ");
fclose(fout);
Please help. Thank you
...
Hello,
i have a list of lists that looks like this:
dupe = [['95d1543adea47e88923c3d4ad56e9f65c2b40c76', 'ron\\c', 'apa.txt'], ['95d1543adea47e88923c3d4ad56e9f65c2b40c76', 'ron\\c', 'knark.txt'], ['b5cc17d3a35877ca8b76f0b2e07497039c250696', 'ron\\a', 'apa2.txt'], ['b5cc17d3a35877ca8b76f0b2e07497039c250696', 'ron\\a', 'jude.txt']]
I w...
Here's the problem.
I'm getting the following string as parameter to my function:
HKEY_CURRENT_USER\Software\MyProgram\SomeKey
where SomeKey is a
REG_DWORD
and has a value.
I need to read and write to that key (SomeKey) but all the registry functions that I know take HKEY_CURRENT_USER separately from the rest of the key (\Soft...
Hi all,
Hopefully this is a quick and easy question about BufferedOutputStreams and DataOutputStreams in java.
When I write bytes to the output stream like
myBufferedOutputStream.write(array);
myDataOutputStream.write(array);
Do these methods write them instantly to the stream and return or do they ever block?
I did not see anythi...
My aim is to stream a .htm file via Response.WriteFile("Sample.htm"); and then access a specific html element (ex. <a runat="server" id="myAnchor" /> ) from the Response which happened in the Page_PreInit Event.
I tried it already with ((HtmlGenericControl)myAnchor) but it doesn't work. It only works, if the anchor tag is inside the .as...
Hi!
I need some help understanding a peculiar issue I'm having when using asio.
I've a client -server app, with a c++ client(using boost asio) sending 2 byte hearbeat (say, every second) to a server(written in java) (and receiving lots of data as well).
for a quite a few minutes the server correctly receives the 2 byte HeartBeat...
I am trying to write to a bluetooth device on MAC OSX using the unistd.h Linux functions in c. I am connecting fine and writing the first few bytes with success. When I try to write other commands to it (there are bytes added to the write buffer every 15ms), I don't see any results even though the write() function returns 1 (write succes...
Hi ,
I want to write a structure which has a list of integer id. The list can be of varying length.
typedef struct ss_iidx_node {
int totalFreq;
vector < int > docIDList;
}s_iidx_node;
Now, I wish to write this structure in a file and read it back.
How can I do it?
Wrting is done:
fwrite(&obj,sizeof(s_iidx_node),1,dat_fd...
Writing to a file is not working after hosting the web application, whereas they were working while developing and testing in my localhost on debug mode. What could be the problem in writing to a file after hosting? Is there any special permission that should be given to the folders/file?
...
I'm working on a file format that should be written and read in several different operating systems and computers. Some of those computers should be x86 machines, others x86-64. Some other processors may exist, but I'm not concerned about them yet.
This file format should contain several numbers that would be read like this:
struct Lon...
I am trying to create an XML file, but the XML file needs to be wrapped in nodes... hence, not easy to use append.
Any help with this would be great!!
My XML consists of 2 different node types:
<entry id="1_0">
<title>This is the title</title>
<description>This is the description...</description>
<subName>Publishers Name<...
hi,
I have a very basic problem. I am learning my first steps with python & scripting in general and so even this makes me wonder:
I want to read & write lines to new file:
ifile=open("C:\Python24\OtsakkeillaSPSS.csv", "r")
ofile = open("C:\Python24\OtsakkeillaSPSSout.csv", "w")
#read first line with headers
line1 = ifile.readline()...