I would like to create a spell check facility. I have a huge flat file of words. This file has no cr/lf. How should I do this ? I think I want to read this file say 500 characters at a time. I'll store this data in a variable, adding each 500 characters to what I have already got. Should the target variale be string ? Will that be big enough ? What else - isn't there a 'huge' or 'memo' type, or something like that ?
robertlees
0
Newbie Poster
Recommended Answers
Jump to PostBad idea. Your best bet is to work with the file line by line. If it has no cr/lf or newline, then how are the words separated, by space? If so, I would make a mini-program to actually add a vbnewline after every word, and re-save the file, 1 word …
Jump to PostNo No, do your test for whatever word you are checking it against, within the file. I mean, it depends entirely on how big the file is.... a .txt file would need an absurd amount of words in order to be too big to load into a variable. You have …
All 6 Replies
Comatose
290
Taboo Programmer
Team Colleague
robertlees
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
robertlees
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
robertlees
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.