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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Madavian

    trouble with files

    The file name only is passed, the directory is not in the program path.
  2. Madavian

    Use python to search through Flat Files

    ''' a basic script - this doesn't cater for exceptions take care with using print: if a lot of output is generated your system will slow down use output files instead ie: ofile = open(file,'w') , ofile.write(line) and ofile.close() ''' import os def find_it(): dir =...
  3. Madavian

    Spliting input

    focwizard provided a solution to a similar problem posted by TomBorcoman on 23 June 04.
  4. Madavian

    Spliting input

    Can I split 1 input record into 5 output records? The input record contains 5 sets of data that may be split depending on the data itself. The output will go to a holdfile.
  5. Madavian

    Text field decleration

    I have to process text files with fixed length fields. Does Python provide for a way to define the fields? I need something like the following. text file = 'aaabccccccccddddeff...' converted to :- field1 = 'aaa' field2 = 'b' field3 = 'cccccccc' etc.... I am using - field1 = file[0:3] #...

Part and Inventory Search

Back
Top