I have a vector of transactions. In this vector any given transaction (temp) is either a "D"eliver or an "E"xpect. If the transaction is a deliver I want to output the data into a deliver file and if it's an expect I want to output the data in an expect file.
I have a for loop where check one transaction at a time. This code is also in the for loop:
if (temp.strsafe_tran_type == "D"
{
BufferedWriter out = new BufferedWriter(new FileWriter(delFileName));
}
else if (temp.strsafe_tran_type == "E"
{
BufferedWriter out = new BufferedWriter(new FileWriter(expFileName));
}
//out.write Transaction member data
if (temp.strdepoId == null)
{
out.write("delivery = \"\"" + ","
;
}
else
{
out.write("delivery = \"" + temp.strdepoId.trim() + "\"," );
}
out.newLine();
When I complie I'm getting Error: C:\folder\SecWriteToFile.java(50): cannot resolve symbol: variable out in class SecWriteToFile
Is there something that I am not doing that I should or something that I'm doing that I shouldn't?
I have a for loop where check one transaction at a time. This code is also in the for loop:
if (temp.strsafe_tran_type == "D"
{
BufferedWriter out = new BufferedWriter(new FileWriter(delFileName));
}
else if (temp.strsafe_tran_type == "E"
{
BufferedWriter out = new BufferedWriter(new FileWriter(expFileName));
}
//out.write Transaction member data
if (temp.strdepoId == null)
{
out.write("delivery = \"\"" + ","
}
else
{
out.write("delivery = \"" + temp.strdepoId.trim() + "\"," );
}
out.newLine();
When I complie I'm getting Error: C:\folder\SecWriteToFile.java(50): cannot resolve symbol: variable out in class SecWriteToFile
Is there something that I am not doing that I should or something that I'm doing that I shouldn't?