By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,557 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,557 IT Pros & Developers. It's quick & easy.

Help reading the text files

P: 48
Hi All,

I have a small question regarding accessing the text files in C++. Here is what I am writing in C++. Tha algorithm is as follows:
for j = 2:length(image)
{
Red = image(j,1)+1;
}
where "image" loads/contains a text file and this text file is filled with strings seperated by tab. So how do i write the above algorithm in C++ to achieve the same effect.

Any help in this would be appreciated.

Thanks,
Rishi
Jun 19 '07 #1
Share this Question
Share on Google+
1 Reply


DeMan
100+
P: 1,806
If you have a look in the articles section, I'm pretty sure file access is covered.....
Jun 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.