|
I have always been able to read and write basic text files in C++, but so far no one has discussed much more than that.
My question is this:
If developing a file type by myself for use by an application I also create, how would I go about writing the ...
Started by joe on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
You can also serialize your object model....
You basically have to come up with your own file format and write binary data.
The only drawback is that you have from inventing your own .
If you create a binary file , you can write any file to it .
|
|
For reading XML, there is SAX and DOM built into Java 1.5. You can use JAXP and not need to know details about what parser is available... So, what are some prescribed APIs for one to write XML documents in Java 1.5 and earlier?
I don't want to use a ...
Started by Dilum Ranatunga on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There's no official "prescribed" API, but we've been very happy with the following technique:
Create a class XmlWriter that initializes with a character Writer and has methods like startElement( String name ) , writeAttribute( String name, String value... .
|
|
I'm almost finished with writing assignment #2 for the radio position I'm interviewing for. One more to go after this!
Started by April_27 on
, 11 posts
by 10 people.
Answer Snippets (Read the full thread at theparentingpod):
Bridget
DH since 1998 - Justin
Daniel (9) & Damien (7)
I QUIT SMOKING OVER ~ 1-28-2009
DS - Drake Benson ~ 12-25-2011
Co-Hosting 2007 Playroom AND Mental Health And...I just emailed them in!
The first assignment....
Like just what you need.
|
Ask your Facebook Friends
|
I have a requirement to write HTML to the file system and I was wondering if there is any speed boost in converting it to bytes and writing it using a FileStream rather than using the File.WriteAllText() (or a similar text method).
Started by Rob on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Then in the future if you have this will be your disk write speed....
Write the code that is most readable and maintainable first.
Written is very large, I would not worry about it, and just use the implementation that I felt was most.
|
|
After saying writing so many times in my head, it's started to devolve into pure nonsense.
This thread is for those of us who are not only musicians, but writers. I know there's a few of you out there, and I wanted a place where we could share our experiences...
Started by The Reverend on
, 16 posts
by 5 people.
Answer Snippets (Read the full thread at sevenstring):
Hell, just finishing a novel is an achievement in itself!
My writing is all:....
Nothing will probably end up happening with it, but it's probably my favorite writing to just that's crucial in writing novels.
Completed.
|
|
I learned the object-oriented in Java. Now in develop in C#. This means that I never really understood the functioning of delagates but I know how to use them.
Lately I discovered this page http://java.sun.com/docs/white/delegates.html .
If Java is able...
Started by Dran Dane on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
There's little that's particularly magical about delegates - they're just a very useful that? I mean, if you have a rules engine, or commands that are more than just eventhandlers, then sure: You and as such they add ....
Of nested classes.
|
|
I need to write data into drive. I have two options:
write raw sectors.(_write(handle, pBuffer, size);) write into a file (fwrite(pBuffer, size, count, pFile);) Which way is faster? I expected the raw sector writing function, _write, to be more efficient...
Started by Macroideal on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To put it another way, in your first loop, you are actually writing SSD_SECTOR....
When you call fwrite , you are doing buffered system calls, as you only write to disk in larger chunks.
Probably because a direct write isn't buffered.
|
|
There are so many possible errors in POSIX environement. Why some of them (write to unconnected socket in particular) get special treatment in form of signals?
Started by Łukasz Lew on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider the program less that's writing down the....
I guess the reason for having separate error-handling to write to a file that doesn't exist should always be treated as an error).
To write to a pipe (anonymous or named) as well.
|
|
I'm biased towards writing fool-proof applications. For example with PHP site, I validate all the inputs from client-side using JS. On the server-side I validate again. On both sides I do validation for emptiness, and other patterns (email, phone, url...
Started by Viet on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Programmers who think "that just doesn't look like it should be right, but it's the example everyone.
|
|
Currently I am making some decisions for my first objective-c API. Nothing big, just a little help for myself to get things done faster in the future.
After reading a few hours about different patterns like making categories, singletons, and so on, I ...
Started by Thanks on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Just know that you won't be able.
There's nothing wrong with using plain C functions, though.
Objects.
|