Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-21-2006, 10:16 AM   #1
Baseband Member
 
Dnsgm's Avatar
 
Join Date: Jan 2006
Posts: 61
Default getting strings from a txt file

I have a .txt file and I'm not sure how to string copy the strings in the file. Any ideas?
__________________

Dnsgm is offline   Reply With Quote
Old 01-03-2007, 09:50 AM   #2
Baseband Member
 
Join Date: Jul 2006
Posts: 58
Default Re: getting strings from a txt file

In which language? With Java you can use the BufferedReader and StringTokenizer classes.

I would read from the file and store the strings into an array.
__________________

Lightning_Rider is offline   Reply With Quote
Old 01-05-2007, 01:22 PM   #3
Baseband Member
 
jonny912's Avatar
 
Join Date: Jun 2006
Posts: 80
Send a message via MSN to jonny912
Default Re: getting strings from a txt file

In C# you can do something like
Code:
String path = (@"C:\myTextFile");
Public StreamReader sr = new StreamReader(path);
String myString = (sr.ReadLine);
I'm not positive on that though so look it up on MSDN
__________________
Computers are like air conditioners, they break when you open windows.
jonny912 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:32 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0