Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
QuestionReplaces "[fieldname]" in the HTML template document with data from the corresponding column of the SQLite table. Pin
Tsodgorhuu23-Nov-08 21:00
Tsodgorhuu23-Nov-08 21:00 
AnswerRe: Replaces "[fieldname]" in the HTML template document with data from the corresponding column of the SQLite table. Pin
Thomas Weller23-Nov-08 21:30
Thomas Weller23-Nov-08 21:30 
AnswerRe: Replaces "[fieldname]" in the HTML template document with data from the corresponding column of the SQLite table. Pin
Ashfield23-Nov-08 21:50
Ashfield23-Nov-08 21:50 
GeneralRe: Replaces "[fieldname]" in the HTML template document with data from the corresponding column of the SQLite table. Pin
Guffa23-Nov-08 23:09
Guffa23-Nov-08 23:09 
QuestionA program to delete first n bytes in a file Pin
Matjaz-xyz23-Nov-08 20:47
Matjaz-xyz23-Nov-08 20:47 
AnswerRe: A program to delete first n bytes in a file Pin
Christian Graus23-Nov-08 20:50
protectorChristian Graus23-Nov-08 20:50 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz23-Nov-08 21:00
Matjaz-xyz23-Nov-08 21:00 
GeneralRe: A program to delete first n bytes in a file Pin
Guffa23-Nov-08 21:38
Guffa23-Nov-08 21:38 
max00slo wrote:
I didnt find how to remove or edit the array of bytes... or i just forgot how to


You can't remove part of an array. You would have to create a new array and copy the data that you want to keep. That would use twice as much memory, so that's not a very good idea.

Use a FileStream to write part of the array, instead of the WriteAllBytes method.

An alternative, if you don't want to keep the entire file in memory, is to read smaller blocks from the file and write to a temporary file.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz23-Nov-08 21:53
Matjaz-xyz23-Nov-08 21:53 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili23-Nov-08 22:00
mentorGiorgi Dalakishvili23-Nov-08 22:00 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz23-Nov-08 22:23
Matjaz-xyz23-Nov-08 22:23 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili23-Nov-08 22:37
mentorGiorgi Dalakishvili23-Nov-08 22:37 
GeneralRe: A program to delete first n bytes in a file [modified] Pin
Matjaz-xyz23-Nov-08 23:42
Matjaz-xyz23-Nov-08 23:42 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili24-Nov-08 0:30
mentorGiorgi Dalakishvili24-Nov-08 0:30 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 1:42
Matjaz-xyz24-Nov-08 1:42 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili24-Nov-08 1:46
mentorGiorgi Dalakishvili24-Nov-08 1:46 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 2:16
Matjaz-xyz24-Nov-08 2:16 
GeneralRe: A program to delete first n bytes in a file [modified] Pin
Giorgi Dalakishvili24-Nov-08 2:30
mentorGiorgi Dalakishvili24-Nov-08 2:30 
GeneralRe: A program to delete first n bytes in a file Pin
Guffa24-Nov-08 2:16
Guffa24-Nov-08 2:16 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 2:23
Matjaz-xyz24-Nov-08 2:23 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili24-Nov-08 2:46
mentorGiorgi Dalakishvili24-Nov-08 2:46 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 2:50
Matjaz-xyz24-Nov-08 2:50 
GeneralRe: A program to delete first n bytes in a file Pin
Giorgi Dalakishvili24-Nov-08 2:55
mentorGiorgi Dalakishvili24-Nov-08 2:55 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 3:16
Matjaz-xyz24-Nov-08 3:16 
GeneralRe: A program to delete first n bytes in a file Pin
Matjaz-xyz24-Nov-08 4:10
Matjaz-xyz24-Nov-08 4:10 

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.