Copying info from a .TXT file

PatGPatG Junior MemberPosts: 32

I need to copy an IP address from a txt file that is stored on the master. Any links that would explain this much appreciated, my search has so far been fruitless.

Thanks

Comments

  • HARMAN_ChrisHARMAN_Chris Harman Professional University Posts: 279

    Text file operations are covered in Exercise 7 of the CP232 instructor led course. We are working on capturing this course in an On Demand series and expect it to be available shortly. I presume you will receive code suggestions from forum posters before this goes live, but I would encourage you to check out the CP231 On Demand course once it is released.

  • PatGPatG Junior Member Posts: 32

    OK thanks

  • sentry07sentry07 Junior Member Posts: 55

    Check the help file for FILE_OPEN, FILE_READ_LINE, FILE_CLOSE, etc. Those functions give you what you need to open a file with a file handle, read lines from it, and close the file handle.

  • ericmedleyericmedley Senior Member - 3709 Posts Posts: 4,135

    do NOT forget to close your files when you are done. :)

Sign In or Register to comment.