Skip navigation

God Sequential File handling in .NET annoys me

Sub makeWebPages()
Dim i As Int32

Dim hw(num) As IO.StreamWriter

'loop to generate web pages
For i = 1 To num

hw(i – 1) = New IO.StreamWriter(hName(1), False)
hw(i – 1).AutoFlush = True

Dim j As Int32

For j = 1 To num
If Not j = num Then
.WriteLine(cLink(1))
End If
Next

.WriteLine("")
.WriteLine("")

.Flush()

End With

Next

End Sub

it produces this when num=4

God damn it

I think im gonna have to rewrite that god damn sub

Mind you, coding it with a io.streamwriter might be a bad idea

I think there is a MSR paper about it, ill read that before I go back to the VB6ish way of doing things

josh out

PS: I also hate Blogger, it made me leave out the most of the HTML

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: