New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Hey there to
Create File:
You have to use "System.IO".You can then use "File" class methods such as File.create();
Read file:
In the same way you can use loop to iterate over lines while text exists like this
String line;
while((line = file.ReadLine()) != null)
{
counter++;
//Here comes to catch email logic
//Check if it contains @
if(line.contains("@")){
String email1=line;
//do whatever with email
}
}