Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Textfile to csv with a small twist

by sapnac (Beadle)
on Aug 25, 2005 at 17:53 UTC ( #486670=note: print w/replies, xml ) Need Help??


in reply to Textfile to csv with a small twist

Hello!
Do you know the no. of columns that are involved ? If you do then One approach is While not EOF read the file while not column count read the file and put the data in the other file (prepend/append comma depending on the detailed logic) endwhile line break End while Eof I had similar situation and this is how I went about it. Hope it helps!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://486670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-11-26 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?