Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: need help pls Pin
David Mujica6-Jan-12 6:06
David Mujica6-Jan-12 6:06 
GeneralRe: need help pls Pin
zakari mohammed6-Jan-12 6:16
zakari mohammed6-Jan-12 6:16 
AnswerRe: need help pls Pin
Luc Pattyn6-Jan-12 7:08
sitebuilderLuc Pattyn6-Jan-12 7:08 
GeneralRe: need help pls Pin
zakari mohammed10-Jan-12 23:26
zakari mohammed10-Jan-12 23:26 
AnswerRe: need help pls Pin
RobCroll8-Jan-12 18:44
RobCroll8-Jan-12 18:44 
GeneralRe: need help pls Pin
zakari mohammed10-Jan-12 23:14
zakari mohammed10-Jan-12 23:14 
AnswerRe: need help pls Pin
Abhinav S8-Jan-12 19:42
Abhinav S8-Jan-12 19:42 
QuestionAdding text to the beginning of a file rather than the end Pin
Marcus J. Smith4-Jan-12 5:55
professionalMarcus J. Smith4-Jan-12 5:55 
I just found a message from 2004 that said there is no option for opening a file and adding text to the beginning. I want to validate whether that is still true or not.

What I want to do is add some data to the beginning of a file without reading and writing the entire file. The files are large text files, a lot of the time they are gigabytes in size so it is inefficient and most of the time not possible to read it into memory and manipulate the data.

Is there an option through a FileStream or some other type of I/O class that will open a file allow me to point to the beginning and write text as an "insert" type of operation and save the file?

An example of what I am trying to do is below.

Start
Middle
End

Open file and add to the beginning

New Text
Start
Middle
End

CleaKO

"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

AnswerRe: Adding text to the beginning of a file rather than the end Pin
Dave Kreskowiak4-Jan-12 7:10
mveDave Kreskowiak4-Jan-12 7:10 
GeneralRe: Adding text to the beginning of a file rather than the end Pin
Marcus J. Smith4-Jan-12 7:38
professionalMarcus J. Smith4-Jan-12 7:38 
AnswerRe: Adding text to the beginning of a file rather than the end Pin
Luc Pattyn4-Jan-12 7:38
sitebuilderLuc Pattyn4-Jan-12 7:38 
AnswerRe: Adding text to the beginning of a file rather than the end Pin
Eddy Vluggen4-Jan-12 11:53
professionalEddy Vluggen4-Jan-12 11:53 
QuestionOpen word doc inside WebBrowser control on Win7 machine Pin
Nitin Varshneya3-Jan-12 5:54
Nitin Varshneya3-Jan-12 5:54 
AnswerBumping repost alert Pin
Luc Pattyn3-Jan-12 6:48
sitebuilderLuc Pattyn3-Jan-12 6:48 
AnswerRe: Open word doc inside WebBrowser control on Win7 machine Pin
Dave Kreskowiak3-Jan-12 9:37
mveDave Kreskowiak3-Jan-12 9:37 
Question[Resolved] C# to VB Adaption Problem with Lambda Expressions Pin
Sonhospa1-Jan-12 3:27
Sonhospa1-Jan-12 3:27 
AnswerRe: C# to VB Adaption Problem Pin
Luc Pattyn1-Jan-12 3:47
sitebuilderLuc Pattyn1-Jan-12 3:47 
QuestionRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 3:59
Sonhospa1-Jan-12 3:59 
AnswerRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 6:23
professionalEddy Vluggen1-Jan-12 6:23 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 6:34
Sonhospa1-Jan-12 6:34 
GeneralRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 6:39
professionalEddy Vluggen1-Jan-12 6:39 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 6:58
Sonhospa1-Jan-12 6:58 
AnswerRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 7:36
professionalEddy Vluggen1-Jan-12 7:36 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 7:53
Sonhospa1-Jan-12 7:53 
GeneralRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 8:35
professionalEddy Vluggen1-Jan-12 8:35 

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.