Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StreamReader f1 = new StreamReader(args[0]);
- StreamReader f2 = new StreamReader(args[1]);
- StreamWriter p = new StreamWriter(args[2]);
- double[] array1 = new double[20];
- double[] array2 = new double[20];
- double[] array3 = new double[20];
- string line;
- int index;
- double value;
- while ((line = f1.ReadLine()) != null)
- {
- string[] currentLine = line.Split('|');
- index = Convert.ToInt16(currentLine[0]);
- value = Convert.ToDouble(currentLine[1]);
- array1[index] = value;
- }
- static void Main(String[] args)
- {
- // Create variables to hold the 3 elements of each item that you will read from the file
- // Create variables for all 3 files (2 for READ, 1 for WRITE)
- int ID;
- string InvName;
- int Number;
- string IDString;
- string NumberString;
- string line;
- List<InventoryNode> Inventory = new List<InventoryNode>();
- InventoryNode Item = null;
- StreamReader f1 = new StreamReader(args[0]);
- StreamReader f2 = new StreamReader(args[1]);
- StreamWriter p = new StreamWriter(args[2]);
- // Read each item from the Update File and process the data
- //Data is separated by pipe |
Add Comment
Please, Sign In to add comment