Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the registry as a text file into a tmp cursor 1

Status
Not open for further replies.

coldan

Programmer
Oct 19, 2008
98
AU
I have been reading thread184-1476889 in respect to cleaning up files.

However I find the technique does not work for me on a reg file.

I need to read the reg file ( txt) into the tmp cursor, line by line, as it appears in all of my text editors, so I can search for certain strings.

I see many various hex codes between the end of one line and the start of the next using V editor but in text mode each line is seperate.

With my log file I can use APPEND (myfile) SDF but this does not work here.

Any clues anybody?

Thanks

Colin
 
Colin,

Just to elaborate my previous message:

Code:
lcStr = FILETOSTR("SomeFile.reg")
lnCount = ALINES(laLines, lcStr)
FOR lnI = 1 TO lnCount
  * do whatever you want with laLines(lnI)
ENDFOR

Hope this makes sense.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top