| | |
reading data from a text file
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Well, first #include <fstream>. Make a type called std::ifstream. This is a stream which can read from files. You should have an array declared so loop through its elements and insert what you read from the file into the successive elements of the array... There's an example here somewhere http://www.cplusplus.com/reference/i...tor%3E%3E.html
![]() |
Similar Threads
- C++ Reading from a text file (C++)
- reading data from text fies in c (C)
- Please anybody to help to read string value in text file using C# (C#)
- Reading and Displaying a comma delimited text file to a table. (ASP)
- Need Help in Reading characters from a text file (C++)
- Homework: filling array from text file (VB.NET)
- Help Reading Info in Text File Into an Array (C++)
Other Threads in the C++ Forum
- Previous Thread: reading data from a text file
- Next Thread: Parent and Child Classes in C++ Builder
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






