Click here to Skip to main content
15,890,741 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: having a problem using addnew method Pin
vaiology9-May-05 17:25
vaiology9-May-05 17:25 
QuestionService or Application??? Pin
RoyRose7824-Apr-05 10:19
RoyRose7824-Apr-05 10:19 
AnswerRe: Service or Application??? Pin
Dave Kreskowiak24-Apr-05 16:14
mveDave Kreskowiak24-Apr-05 16:14 
QuestionIs this bad practice? Pin
Len Miller24-Apr-05 8:14
Len Miller24-Apr-05 8:14 
AnswerRe: Is this bad practice? Pin
Steven Campbell25-Apr-05 6:29
Steven Campbell25-Apr-05 6:29 
GeneralRe: Is this bad practice? Pin
Len Miller25-Apr-05 9:27
Len Miller25-Apr-05 9:27 
GeneralEditing a text file from vb Pin
ADY00724-Apr-05 7:53
ADY00724-Apr-05 7:53 
GeneralRe: Editing a text file from vb Pin
Len Miller24-Apr-05 9:16
Len Miller24-Apr-05 9:16 
I am unsure what you are trying to accomplish and why, but here are some possible solutions.

When you use a text FileStream, you can use FileMode.Append to append to the text file after all the existing text quite easily.

If you actually mean that you want literally 1 line of text from textbox1, then "insert" the text from textbox2, then the rest of textbox1, then you will have to do something else.

You may create a new file, read 1 line of text from the first file, write it to the second, then write the textbox2 data, then the rest of the first file.

(yuk)

Or, you can tread the file as a rendom access file, and read/write specific bytes (fields) and limit the sections of text to "n" number of bytes.

(better?)

Or, you really may want to tread these as data tables and save to XML, or keep this data in objects and serialize the objects to XML files. it all depends on what the end-goal is.


Thanks,
-Len Miller

"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
GeneralOffline files and HSM Pin
Zenly24-Apr-05 4:36
Zenly24-Apr-05 4:36 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak24-Apr-05 5:17
mveDave Kreskowiak24-Apr-05 5:17 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 6:10
progload24-Apr-05 6:10 
GeneralRe: Offline files and HSM Pin
Zenly24-Apr-05 13:37
Zenly24-Apr-05 13:37 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 14:02
progload24-Apr-05 14:02 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 14:34
progload24-Apr-05 14:34 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak24-Apr-05 16:49
mveDave Kreskowiak24-Apr-05 16:49 
GeneralRe: Offline files and HSM Pin
Zenly25-Apr-05 1:54
Zenly25-Apr-05 1:54 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak25-Apr-05 2:08
mveDave Kreskowiak25-Apr-05 2:08 
GeneralRe: Offline files and HSM Pin
Zenly25-Apr-05 5:20
Zenly25-Apr-05 5:20 
GeneralConvert image into binary Pin
Nana8124-Apr-05 0:19
Nana8124-Apr-05 0:19 
GeneralRe: Convert image into binary Pin
Christian in a nice hotel in Singapore24-Apr-05 0:26
sussChristian in a nice hotel in Singapore24-Apr-05 0:26 
GeneralRe: Convert image into binary Pin
Dave Kreskowiak24-Apr-05 5:01
mveDave Kreskowiak24-Apr-05 5:01 
GeneralRe: Convert image into binary Pin
Anonymous24-Apr-05 7:33
Anonymous24-Apr-05 7:33 
GeneralRe: Convert image into binary Pin
Dave Kreskowiak24-Apr-05 16:09
mveDave Kreskowiak24-Apr-05 16:09 
GeneralRe: Convert image into binary Pin
Anonymous24-Apr-05 12:45
Anonymous24-Apr-05 12:45 
GeneralValidate E-mail & Web address help... Pin
AndyYie23-Apr-05 18:39
AndyYie23-Apr-05 18:39 

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.