Im trying to read from a file using Borland C++ but im haveing a problem reading from a file
Code:int TForm1::LoadFile() { ifstream filein; string inchar; memblock; filein.open("FileCabenet\\StockUpdates\\datalink.txt"); while (filein.good()) { filein >> inchar; memblock.append(inchar); } filein.close(); return 1; }The Problem I’m having when I read in it adds a \ in front of the " and i cant work out whyCode:The File "PRICE","PRODUCT_CODE","STOCK_AVAILABLE","CATEGORY_TIER1","CATEGORY_TIER2","CATEGORY_TIER3","SHORT_DESCRIPTION","LONG_DESCRIPTION","WEB_LINK","WEIGHT"




Reply With Quote