Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the best solution for store html/javascripts Pin
Not Active27-Feb-07 6:13
mentorNot Active27-Feb-07 6:13 
QuestionRe: What is the best solution for store html/javascripts Pin
Scripter4727-Feb-07 7:14
Scripter4727-Feb-07 7:14 
AnswerRe: What is the best solution for store html/javascripts Pin
Not Active27-Feb-07 7:46
mentorNot Active27-Feb-07 7:46 
GeneralRe: What is the best solution for store html/javascripts Pin
Scripter4727-Feb-07 8:05
Scripter4727-Feb-07 8:05 
AnswerRe: What is the best solution for store html/javascripts Pin
mike montagne27-Feb-07 10:49
mike montagne27-Feb-07 10:49 
GeneralRe: What is the best solution for store html/javascripts Pin
Scripter4728-Feb-07 2:59
Scripter4728-Feb-07 2:59 
GeneralRe: What is the best solution for store html/javascripts Pin
mike montagne28-Feb-07 5:59
mike montagne28-Feb-07 5:59 
QuestionReading an open file. Pin
eggsovereasy27-Feb-07 4:56
eggsovereasy27-Feb-07 4:56 
I'm trying to make a small console application to grab some Access databases off a network drive and store them in a SQL server database (for archiving/backup). The problem is, if any user has a database open in Access on their computer I get an IOException about how it can't access the file because another process is already using it. Thats fine, but all I want to do is read the bytes, not change anything. I can open explorer, navigate to the directory, and manually copy the .mdb file when its open, but my program won't open it?

I have tried it like this:

<br />
bu.File = File.ReadAllBytes(dr["path"].ToString());<br />


Where bu is an instance of my class that stores backup information, bu.File is a byte[], and dr is a DataRow containing connection information.

and more explicitly like this:

<br />
FileStream fs = new FileStream(dr["path"].ToString(), FileMode.Open, FileAccess.Read);<br />
BinaryReader br = new BinaryReader(fs);<br />
bu.File = br.ReadBytes(Convert.ToInt32(fs.Length));<br />


Any suggestions?
AnswerRe: Reading an open file. Pin
Not Active27-Feb-07 5:18
mentorNot Active27-Feb-07 5:18 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:31
eggsovereasy27-Feb-07 5:31 
AnswerRe: Reading an open file. Pin
lost in transition 27-Feb-07 5:44
lost in transition 27-Feb-07 5:44 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:55
eggsovereasy27-Feb-07 5:55 
AnswerRe: Reading an open file. Pin
Russell Morris27-Feb-07 8:02
Russell Morris27-Feb-07 8:02 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 11:12
eggsovereasy27-Feb-07 11:12 
GeneralRe: Reading an open file. Pin
Russell Morris27-Feb-07 13:30
Russell Morris27-Feb-07 13:30 
QuestionCollapsiblePanelExtender problem Pin
jaganil27-Feb-07 4:43
jaganil27-Feb-07 4:43 
QuestionDirectX under C# Pin
Mark T.27-Feb-07 4:28
Mark T.27-Feb-07 4:28 
QuestionApplication config Pin
mail57235227-Feb-07 4:02
mail57235227-Feb-07 4:02 
AnswerRe: Application config Pin
Not Active27-Feb-07 5:16
mentorNot Active27-Feb-07 5:16 
GeneralClass Names Pin
Brady Kelly27-Feb-07 3:38
Brady Kelly27-Feb-07 3:38 
GeneralRe: Class Names Pin
Stefan Troschuetz27-Feb-07 3:49
Stefan Troschuetz27-Feb-07 3:49 
AnswerRe: Class Names Pin
Guffa27-Feb-07 4:01
Guffa27-Feb-07 4:01 
GeneralRe: Class Names Pin
Brady Kelly27-Feb-07 4:12
Brady Kelly27-Feb-07 4:12 
QuestionRS232 Com Port Control Pin
Billy Whizz27-Feb-07 3:33
Billy Whizz27-Feb-07 3:33 
AnswerRe: RS232 Com Port Control Pin
Stefan Troschuetz27-Feb-07 4:36
Stefan Troschuetz27-Feb-07 4:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.