So random access file is otherwise the same as and outputstream? Anyway, thanks heaps, that's exactly what I needed. Can't believe random access didn't even spark in my head when thinking of that!
-Jake
Hi, I need a file to be written at a specific byte to a specific byte (I can write to a specific byte, that's simple), and I can also read inputstreams from and to a specific byte thanks to the skip() method. Problem is I can't seem find a similar method for outputstreams.
For example, say I...
Ok, I have this really simple function in some client / server programs, I am trying to read an input stream, it sends ok, says I send something like
"ostream.write("message".getBytes());" on a client
and it sends. And this little procedure reads the stream;
private void processRequest(){...
Hi, thanks, I see how that works, the second part was what I was after.
I actually came up with a much simpler solution, but you need 2 queries. It's easy to just run an insert query with all the required values, then run conditional update querie/s for every non required variable that isn't...
Hi, I have this query being executed in VBA, it's a long insert query and it's getting the data from a form, problem is not all of the fields are required, and I will get a "data type mismatch in expression" exception if there are any null values.
With a query that isn't running from code this...
Hi,
I have this form, and I need to count the rows in VB so I can store it in a variable and do stuff with it, I know how to count rows on a form by using a textbox with a control source set to "=Count([some_ID])" or whatever, but that's pointless to me. Can I do it directly from VB? Or can I...
Hi,
I need what I think should be a pretty simple SQL statement, but I just can't seem to find the solution.
It's only selecting data from 1 table..
Ok, so I have a table of prices associated with items, and the prices have a date (so it acts as kind of log as well), and there are also...
Ok, thank you Dan, I realise I should have been using min-height now.
Now it stretches to the content in both browsers,,, but (sorry if this is something obvious I'm missing) now the left/middle/right divs don't stretch to the page container (the page container is only stretching to accomodate...
Ok, I'm new to these all CSS type layouts, and I'm having a real headache trying to get even the most standard things looking right.
This layout looks fine in IE, but in Firefox the div's don't stretch according to the content, like, the containers don't resize the containers they're inside and...
<?PHP
$conn = "DRIVER={MySQL};\
SERVER=localhost;\
DATABASE=test;\
USER=root;\
PASSWORD=xxx;\
OPTION=3;";
$conn->open($conn);
?>
Thanks, I missed that, it has another error now:
"Fatal Error: Call to member...
Hi,
I'm trying to connet to a MySQL database using a dsn-less connection and I keep getting the following error:
Parse error, syntax_error, unexpected T_VARIABLE in C:\Inetpub\wwwroot\test.php on Line 10
This is how my connection looks:
********************************************
<?PHP...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.