Coincise question: Need to be able to modify contents of char* in c++.
I have a function which is somewhat like this: char* buffer = (char*)FUNCTION
Now I need to modify 'buffer' e.g. do something like this buffer[1] = "h";
Amongst what I have tried is the following:
char *string = "Hello World";
char buffer[65]; //I still ne...
Hello,
I've got a little problem here.
I'm converting binary to ascii, in order to compress data.
All seems to work fine, but when I convert '11011011' to ascii and try to write it into file, I keep getting error
UnicodeEncodeError: 'charmap' codec can't encode character '\xdb' in position 0: character maps to
Here's my code:
b...
I would like to be able to write the .iges file format using c#. Can anyone help me with this?
...
Question: When does the actual writing to the sqlite3 db file take place and what happens if it is interrupted?
Info:
I have this program in python that I've been working on for a few weeks that uses sqlite3 to store large amounts of data from the simulation it is running. But there are two situations I'm worried about.
We've been ...
Hello !
I'm optimizing a Linux boot on PowerPC MPC83xx. I'm trying to optimize the kernel image copy, from nand to ram and trying to check or change the write policy of the cache.
As a read in the reference manual, the processor uses the write-back policy by default. But I haven't found any register where to check/configure this.
How ...
I have to read a file and write into another but after a specific word occurs something like hi. How can i do any help please.
...
hello folks,
I have a php script that writes a text file to the same directory where the script is.
Now the problem is, the script gets a URL from some other script. Now the new text file is supposed to be written to this provided location from the last step.
The provided location is in URL format:
"www.example.com/main/foo/"
Is there a...
I was wondering how often python flushes to a file. Also wondering how often python flushes to stdout. I believe python flushes to stdout after every new line but that being said, if you overload stdout to be to a file does it flush as often as stdout or how often it flushes to a file?
Anyways thanks! And sorry for the pretty simple que...
While writing a simple server-client application, this question came in my mind. When someone tries to write to a broken pipe, a SIGPIPE would be generated. Let's say I handle the signal in my code.
Now what error does the write call returns - EPIPE or EINTR ( as it was interrupted by a signal). I tried with a sample program and I seem ...
I'm trying to save an object in a file but the file doesn't appear on the device and I don't get an exception either.
public static void save(Context ctx) {
Log.i("App serialization", "Saving to settings.ser: " + ctx.getFileStreamPath("settings.ser"));
FileOutputStream fos = null;
ObjectOutputStream out = null;
try {
...
Hi dear Stackers,
I know the question has been asked thousands of times, but I'll ask it again: is there a way (even patchy) to write/read a dumb text file with Javascript or Protoype ?
This is only for debug purposes, and is not designed for production. The thing is I need it to work with (at least) both Firefox and IE (preferably un...
Hello,
Consider the script..
<html>
<head>
<script type="text/javascript">
document.write('TEST');
</script>
</head>
<body>
Some body content ...
</body>
</html>
This works fine and the word 'TEST' is added to the <body>
But when
<script type="text/javascript">
window.onload = function(){
document.w...
Using php I'd like to subtract/minus two times; each time within a separate document and thereafter have php write the result (Result after subtracting the two times) within another single text document or within a html document with no HTML tags, just text. The two times subtracted will determine how long a certain player has played the...
I have an xml file that is a project resource. I can access it via Properties.Resources.DrivereSettings. The xml file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<FilterOffsets>
<FocusOffset>
<SerialNumber>12543</SerialNumber>
<Filter>4</Filter>
<Wheel>A</Wheel>
<Offset>7</Offset>
</FocusOffset>
</Filte...
I'm trying to write to an XML document, taking data from an ArrayList of lists
for (int i = 0; i < 15; i++)
{
string headname = (headers[0] as List<string>)[i];
headname.Replace("&", "&");
headname.Replace("<", "<");
headname.Replace(">", ">");
...
Hi
i am creating an under construction page where users can leave their email to be notified when the site launch
i need to add those emails to a text file called list.txt
my question is two parts
how can i add [email protected] to the text file ?
and how i can later delete certain email from a text file ?
thanks for help
...
Hello! My program contains a file with the name "size.txt", which contains just a word "15". If a user choose a value from a spinner,say 17, then the chosen value should be stored in the file and replace "15".
I have added the permission to the program
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-pe...
hey all i am trying to make a data output stream in php
to write back primitive data types to a java application
i created a class that write the data to an array
(write it same as java do , copy from java code)
and finally i am writing back the array to the client.
feels like its not working well
for example the writeInt metho...
I have a WPF project (creating dll). The text boxes that added, (or the listboxs) will only accept, COPY, PASTE, DELETE, and BACKSPACE.I do not know why the textboxs have this behavior. The system receives all of the events (KEYUP, KEYDOWN, PREVIEWKEYUP, PREVIEWKEYDOWN, but won't change the text if characters are typed.
The TEXTCHANGED...
I read Audio File Stream Service Reference. It says that when it gets some data it will invoke the callback function. The callback function can play the data, WRITE it to a file...
I would like to know that how can I write the file in the callback function.
Thanks
...