I can't seem to find this answer anywhere. All i want to do is write a list of numbers to a file using the file.write() method however i wanted to format the numbers as if i had been using a print statement. When you print you can use %0.2f for a 2 decimal floating point number....is there an equivalent for writing IO ?
Skrell 0 Light Poster
markfw 0 Light Poster
Skrell 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
markfw 0 Light 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.