Click here to Skip to main content
15,896,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralHelp me please Pin
Nine_10-Jun-07 17:36
Nine_10-Jun-07 17:36 
GeneralRe: Help me please Pin
Sathesh Sakthivel10-Jun-07 17:42
Sathesh Sakthivel10-Jun-07 17:42 
Questionabout datagrid Pin
Harshi_10-Jun-07 7:00
Harshi_10-Jun-07 7:00 
AnswerRe: about datagrid Pin
Christian Graus10-Jun-07 13:18
protectorChristian Graus10-Jun-07 13:18 
Questionwrites NumberLines text lines to sequential files Pin
bapu288910-Jun-07 6:51
bapu288910-Jun-07 6:51 
AnswerRe: writes NumberLines text lines to sequential files Pin
Christian Graus10-Jun-07 13:23
protectorChristian Graus10-Jun-07 13:23 
GeneralRe: writes NumberLines text lines to sequential files Pin
bapu288911-Jun-07 8:24
bapu288911-Jun-07 8:24 
AnswerRe: writes NumberLines text lines to sequential files Pin
ctlqt1211-Jun-07 5:06
ctlqt1211-Jun-07 5:06 
you can try this :

 <br />
imports System.IO<br />
imports System.Text<br />
<br />
Dim fr As New StreamReader("C:\\a.txt") 'Create StreamReader object<br />
Dim str As New StringBuilder 'Create StringBuilder object<br />
Dim count As Integer = 0 'Create count for writing line<br />
<br />
While (fr.Peek <> -1) 'Read file<br />
  count = count + 1<br />
  str = str.AppendLine(count.ToString() + " " + fr.ReadLine()) 'Add string<br />
End While<br />
<br />
fr.Close() 'Close StreamReader<br />
<br />
Dim fw As New StreamWriter("C:\\a.txt") 'Create StreamWrite object<br />
fw.WriteLine(str) 'Write data<br />
fw.Flush() 'Flush data<br />
fw.Close() 'Close stream<br />

GeneralRe: writes NumberLines text lines to sequential files Pin
bapu288911-Jun-07 8:24
bapu288911-Jun-07 8:24 
QuestionPlease Help me...? Pin
R. M. Sohail Arshed10-Jun-07 0:11
R. M. Sohail Arshed10-Jun-07 0:11 
AnswerRe: Please Help me...? Pin
Dave Kreskowiak10-Jun-07 10:52
mveDave Kreskowiak10-Jun-07 10:52 
AnswerRe: Please Help me...? Pin
Christian Graus10-Jun-07 13:25
protectorChristian Graus10-Jun-07 13:25 
QuestionHow do I search for a row in a datagrid Pin
FrancoisAH9-Jun-07 23:20
FrancoisAH9-Jun-07 23:20 
AnswerRe: How do I search for a row in a datagrid Pin
MohammadAmiry10-Jun-07 2:46
MohammadAmiry10-Jun-07 2:46 
GeneralRe: How do I search for a row in a datagrid Pin
FrancoisAH10-Jun-07 6:19
FrancoisAH10-Jun-07 6:19 
GeneralRe: How do I search for a row in a datagrid Pin
Christian Graus10-Jun-07 15:02
protectorChristian Graus10-Jun-07 15:02 
QuestionHow can I build a project with programin in code? Pin
yersay9-Jun-07 18:39
yersay9-Jun-07 18:39 
AnswerRe: How can I build a project with programin in code? Pin
MohammadAmiry10-Jun-07 2:56
MohammadAmiry10-Jun-07 2:56 
GeneralRe: How can I build a project with programin in code? Pin
yersay10-Jun-07 11:10
yersay10-Jun-07 11:10 
GeneralRe: How can I build a project with programin in code? Pin
Christian Graus10-Jun-07 15:36
protectorChristian Graus10-Jun-07 15:36 
GeneralRe: How can I build a project with programin in code? Pin
yersay10-Jun-07 23:48
yersay10-Jun-07 23:48 
GeneralRe: How can I build a project with programin in code? Pin
Christian Graus11-Jun-07 0:27
protectorChristian Graus11-Jun-07 0:27 
QuestionProgramming MS Word Pin
jimbaloo9-Jun-07 16:37
jimbaloo9-Jun-07 16:37 
Questionprocess Pin
heiro_me9-Jun-07 8:34
heiro_me9-Jun-07 8:34 
AnswerRe: process Pin
Christian Graus9-Jun-07 14:40
protectorChristian Graus9-Jun-07 14:40 

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.