471,325 Members | 1,414 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Can Readlines() go to next line after a Tab

I have a module based app that can load many modules at startup. The modules are text based with a '\t' separating the keyword from the definition. The app reads each module to extract the keywords, but because readlines() must read to the end of the current line to get to the next, the module loading is slow.

Is there a way to have readlines() go to the next line when it finds a tab '\t' instead of a newline '\n'?

Is there a better way to do this?

I know a second file could be made of the keywords only, but I would like to have only one file.

Jun 27 '07 #1
0 853

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Leeds, Mark | last post: by
2 posts views Thread by Yong Wang | last post: by
2 posts views Thread by vch | last post: by
4 posts views Thread by wscrsurfdude | last post: by
7 posts views Thread by Wojciech Gryc | last post: by
7 posts views Thread by Nikhil | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.