Click here to Skip to main content
15,883,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PERL
use strict;
use warnings;

my $file=register.txt;
#read the data from file
 
 my $data= slurp($file);
#print the string data
print $data;

string $data = FILE.ReadAllText(path);
$data = data.Replace(" ",",");
file.WriteAllText(path,data);

#we will just print the data

print "$data\n";

close($data);


(this is my code in that howto address the path ?
my given data like this 20000 lines are there to convert
arunav 1236
askjasi 25986
sdhfuis 26897
krotri  6598548


I want output
arunav,1236
askjasi,25986
sdhfuis,26897
krotri ,6598548

could please one help me
Posted
Updated 19-Feb-14 23:18pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900