User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,754 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 1525 | Replies: 4
Reply
Join Date: Nov 2007
Posts: 6
Reputation: Simran3 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Simran3 Simran3 is offline Offline
Newbie Poster

reading from text files and manipulating the data....how

  #1  
Nov 11th, 2007
Reading from text files........I have to read in a file which contains the list of all service calls to be done today, the calls have to be assigned based on how far the area is in the 10X10 grid of the sector, assuming the office is in the middle say, e55! The agent has his level of expertise and his hrs today to keep in mind.

I have no idea where to start...

Everytime i read in a line, it is in string format so I cant manipulate data as integers, as I had hoped... help..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: finzer is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
finzer finzer is offline Offline
Newbie Poster

Re: reading from text files and manipulating the data....how

  #2  
Nov 11th, 2007
Once you have read the line, parse it. Are the lines the same format? Are the different things associated with a service call separated by commas? If there isn't any "structure" to the service call line then it's more difficult.
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: cld~dotdot is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cld~dotdot cld~dotdot is offline Offline
Newbie Poster

Re: reading from text files and manipulating the data....how

  #3  
Nov 17th, 2007
Originally Posted by Simran3 View Post
Reading from text files........I have to read in a file which contains the list of all service calls to be done today, the calls have to be assigned based on how far the area is in the 10X10 grid of the sector, assuming the office is in the middle say, e55! The agent has his level of expertise and his hrs today to keep in mind.

I have no idea where to start...

Everytime i read in a line, it is in string format so I cant manipulate data as integers, as I had hoped... help..


hmm..... start by getting the app to read a text file ....
Open filename for Input as 1 'open file
While EOF(1)<>True 'loads data until an End-of File signal displays
Input #1, [your variables separated by commas] 'read data
Wend
Close 'close the file

and what would be the format of your data?
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: Simran3 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Simran3 Simran3 is offline Offline
Newbie Poster

Re: reading from text files and manipulating the data....how

  #4  
Nov 17th, 2007
Everybody thanx so much for your help! I read the line with your simple Line Input and parsed it based on commas separating them!

Hmm... Is vb object-oriented? This must sound a terribly ignorant thing to ask but I really dont know..... hmmm .... more like module oriented????
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: Simran3 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Simran3 Simran3 is offline Offline
Newbie Poster

Thanx Everybody ... reading from text files and manipulating the data....how

  #5  
Nov 17th, 2007
Everybody thanx so much for your help! I read the line with your simple Line Input and parsed it based on commas separating them!

Hmm... Is vb object-oriented? This must sound a terribly ignorant thing to ask but I really dont know..... hmmm .... more like module oriented????
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 5:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC