I cant seem to save these data correctly I have mainly doubles and strings, I am saving these in a .txt file called "autosAudi.txt", I get these weird codes and boxes and sometimes for whatever reason Chinese in my textfields? Here is a example of what appears: [url]http://www.flickr.com/photos/63259070@N06/6449175293[/url] as you can see these weird boxes appear out nowhere I didnt register nothing like that, the way I navigate through the data is by clicking >> (next) or << (previous) and the information is supposed to change, the textfield next to "Numero" is supposed to give me a way to input …

Member Avatar
Member Avatar
+0 forum 5

Hi All, I've a little problem with writing and saving to a file I'm close but I can't seem to grasp what i'm doing wrong here. Trying to save student object(s) to allstudents.txt This is my loadStudent method; [CODE]public student[] loadStudent() throws IOException, ClassNotFoundException //loads the accounts and returns them { ObjectInputStream fileInput = new ObjectInputStream(new FileInputStream("allstudents.txt")); student[] returnStudent = new student[MAX_STUDENTS]; try { for (int i = 0; i < MAX_STUDENTS; i ++) { returnStudent[i] = (student)fileInput.readObject(); System.out.println(returnStudent[i]); } } catch(EOFException e) { fileInput.close(); return returnStudent; } return returnStudent; }[/CODE] My save student is as follows [CODE]public void saveStudents(student[] …

Member Avatar
Member Avatar
+0 forum 8

So I've finally fixed up the functionality of an address book I've been writing (not on to utilizing a GUI yet of course though.)However to save or reclaim the data from the last use of the address book I, obviously, need to write and reclaim it from a .txt file, I understand how to write and read, however I'm not sure how to write so when it is read I can make it back into a dictionary. Any ideas? here's how I'm writing so far. [CODE]for line in AB.keys(): line=line+'\n ' print(line,file=f) for line in AB.values(): for string in line: …

Member Avatar
Member Avatar
+0 forum 3

hi! i have the code for saving a gridview as an html file using a savefiledialog. i want to save it to a specific path (without using the savefiledialog)... how can i do that? here's my code: Collapse [CODE] SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = "*.html"; dialog.Filter = "WORD Document (*.html)|*.html"; if (dialog.ShowDialog() == true) { RadDocument document = CreateDocument(rgvReportData); document.LayoutMode = DocumentLayoutMode.Paged; document.Measure(RadDocument.MAX_DOCUMENT_SIZE); document.Arrange(new RectangleF(PointF.Empty, document.DesiredSize)); document.SectionDefaultPageMargin = new Telerik.Windows.Documents.Layout.Padding(2, 2, 2, 2); document.SectionDefaultPageOrientation = PageOrientation.Landscape; HtmlFormatProvider provider = new HtmlFormatProvider(); using (Stream output = dialog.OpenFile()) { provider.Export(document, output); } } [/CODE] how can i sve it without …

Member Avatar
Member Avatar
+0 forum 5

hi there... i am very new (and i mean VERY NEW at visual basic) programming, lets just say this is my 5th hour (and counting) learning programming, i googled since hour 1, i even read almost all i can read while im installing visual studio 2010 coz i really want to learn this programming language coz somebody said that this is an easy language to learn coz of GUI.. so please be easy on me on this one i got a program here with 10 textboxes and 3 buttons, and i want to save every text on that textboxes in …

Member Avatar
Member Avatar
+0 forum 5

The End.