|
-
Oct 13th, 2000, 04:34 AM
#1
Thread Starter
Member
Hi
I need to no how to read a text file with the following layout:
Interface Statistics
Received Sent
Bytes 89041265 361026
Unicast packets 2821 2645
Non-unicast packets 510634 137
Discards 0 0
Errors 0 0
Unknown protocols 178687
and then plot the details in a OLE microsoft graph.
Can anyone help please
Many Thanks
-
Oct 13th, 2000, 04:47 AM
#2
transcendental analytic
Code:
OPen file for input as #1
Line Input#1,InterfaceStat,ReceivedSent
Line Input#1,Unicast
Line INput#1,NonUnicast
Line Input#1,Discards
Line INput#1,Errors
Line INput#1,Unknownprotocols
close #1
Input them all as strings and use val and right functions to get the numeric value of them
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 13th, 2000, 04:55 AM
#3
Addicted Member
Just go to www.vbworld.com and within the articles section there is one titled "Handling Files in Visual Basic". Anything you need should be in there.
Catch you later,
Jeroen Hoekemeijer
Code:
If 1 = 2 Then MajorError
-
Oct 13th, 2000, 05:34 AM
#4
Thread Starter
Member
not worked
i have tried what you have tried this but its not working i get an error on
Line Input#1,InterfaceStat,ReceivedSent
-
Oct 13th, 2000, 05:56 AM
#5
transcendental analytic
What error did you get? Have you tried to declare them as strings?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|