I haven't used C++ in over a year and I am having trouble getting information out of a text file. If anyone can steer me in the right direction I would be very grateful. Here's what I'm using:<br><br>#include <fstream.h><br>#include <iostream.h><br><br>void __fastcall TMainForm::FormCreate(TObject *Sender)<br>{<br> ofstream fParam(PARAMPATH, ios::in);<br> char strParameter[100];<br><br> try<br> {<br> if (!fParam){<br> MessageBox(NULL,"Parameter file could not be opened.", "Load Error",<br> MB_OK + MB_ICONSTOP);<br> exit(1);<br> }<br> while (fParam >> strParameter)<br> {<br> cmbTransParam->Items->Add(strParameter);<br> }<br><br> fParam.close();<br> }<br> catch(...)<br> {<br> MessageBox(NULL,"Error reading parameters.", "Read Error",<br> MB_OK + MB_ICONSTOP);<br> exit(1);<br> }<br><br> Application->OnHint = ShowHint;<br>} <p>Colin Chevrier<br><a href=mailto:colin.chevrier@ca.jdsunph.com>colin.chevrier@ca.jdsunph.com</a><br><a href= > </a><br>