Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProtected Storage Service Pin
David Lau1-Jun-02 8:17
David Lau1-Jun-02 8:17 
Generalspeed up Pin
pnpfriend1-Jun-02 6:48
pnpfriend1-Jun-02 6:48 
GeneralRe: speed up Pin
Joaquín M López Muñoz1-Jun-02 6:56
Joaquín M López Muñoz1-Jun-02 6:56 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 7:11
Brian Delahunty1-Jun-02 7:11 
GeneralRe: speed up Pin
pnpfriend1-Jun-02 7:52
pnpfriend1-Jun-02 7:52 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 9:33
Brian Delahunty1-Jun-02 9:33 
GeneralRe: speed up Pin
pnpfriend1-Jun-02 9:47
pnpfriend1-Jun-02 9:47 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 10:05
Brian Delahunty1-Jun-02 10:05 
Try this


================================================
#include <iostream>
#include <fstream>
#include <vector>

using namespace std;

/*

Other code here

*/

struct FileType
{
char type[_MAX_EXT];
char size[20];

};

/*

other code here

*/

vector<FileType> v_filetypes;

ifstream filelist("TableOfType.txt", ios::in); //ios:in is optional

while(!filelist.eof())
{
filelist >> v_filetypes.type >> v_filetypes.size;
}

filelist.close();

================================================

That should work fine... I think.. but my brain isn't working the best Smile | :)

GeneralRe: speed up Pin
pnpfriend1-Jun-02 10:39
pnpfriend1-Jun-02 10:39 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 10:35
Brian Delahunty1-Jun-02 10:35 
Questiongeting start and end address of a running process? Pin
hwnd1-Jun-02 6:26
hwnd1-Jun-02 6:26 
AnswerRe: geting start and end address of a running process? Pin
Mike Nordell1-Jun-02 7:02
Mike Nordell1-Jun-02 7:02 
GeneralLimiting Characters in Edit Box :: MFC Pin
valikac1-Jun-02 5:30
valikac1-Jun-02 5:30 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
Joaquín M López Muñoz1-Jun-02 5:38
Joaquín M López Muñoz1-Jun-02 5:38 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
dlhson1-Jun-02 5:49
dlhson1-Jun-02 5:49 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
valikac1-Jun-02 6:15
valikac1-Jun-02 6:15 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
Michael P Butler1-Jun-02 7:22
Michael P Butler1-Jun-02 7:22 
GeneralSolution Pin
valikac1-Jun-02 7:15
valikac1-Jun-02 7:15 
QuestionUsing Unicode in Editbox, ListControl and CString ? Pin
dlhson1-Jun-02 4:09
dlhson1-Jun-02 4:09 
AnswerRe: Using Unicode in Editbox, ListControl and CString ? Pin
Paul M Watt1-Jun-02 18:22
mentorPaul M Watt1-Jun-02 18:22 
QuestionGet char pos of RichEditControl ? Pin
dlhson1-Jun-02 3:58
dlhson1-Jun-02 3:58 
AnswerRe: Get char pos of RichEditControl ? Pin
Ed Gadziemski1-Jun-02 10:56
professionalEd Gadziemski1-Jun-02 10:56 
GeneralRetrieve "Data traffic" Pin
XAlien1-Jun-02 3:16
XAlien1-Jun-02 3:16 
GeneralRe: Retrieve "Data traffic" Pin
Paul M Watt1-Jun-02 8:33
mentorPaul M Watt1-Jun-02 8:33 
GeneralRe: Retrieve "Data traffic" Pin
XAlien1-Jun-02 23:05
XAlien1-Jun-02 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.