Short story, I use to use a 1TB drive and need to upgrade since I have many more files on 3 separate 500GB drives. So I decided to buy a 2TB to replace that drive and put the 1TB in a separate lower power pc just for downloading / seeds. I bought the drive online and received it today, so I started transferring files; my one major file (800GB) to the new 2TB drive and watched for a little over 1/2 hour and had to leave. Coming back I had 2 different programs, and a windows notification telling me the …

Member Avatar
Member Avatar
+0 forum 2

hi i seem to have run into a problem when adding records to a Typed file that already exists. I have used ReWrite method to create the file in the first place. [CODE] // Open the file for writing To AssignFile(F, ExtractFilePath(Application.ExeName) + 'bin\drivers' + (frm_vars.Driver1.Caption) + '\card.digi'); Rewrite(F); // Move To The End Of The File Seek(F, FileSize(F)); // Write a couple of records to the file Limits.tenhourdrive := ShortString(frm_vars.L10HrDriveAvailable1.Caption); Limits.fifteenhourshift := ShortString(frm_vars.L15HrShiftAvailable1.Caption); Write(F, Limits); // Close the file CloseFile(F);[/CODE] however if i check if the file exists, and then add records using Reset(F); it duplicates the first records …

Member Avatar
Member Avatar
+0 forum 3

Hi all, Ive been trying to find a seek method for StreamReader. I want to be able to reverse the file buffer by a couple characters at a time. How I have everything set up. [CODE] private void SortThread() { string[] lines; string line, totalLine = null; char[] fileInput = new char[1001]; TextReader tr; tr = new StreamReader("C:\\Users\\Anon\\Desktop\\test.txt"); line = null; do { try { //read 1k characters at a time tr.Read(fileInput, 0, 1000); //turn them to an array of lines line = new string(fileInput); lines = line.Split('\n'); //go backwards in the buffer and remove last line int reverse = …

Member Avatar
Member Avatar
+0 forum 8

Hi. I have written a process that takes a list of values from a spreadsheet and updates a foxpro table, adding records if they do not exist, or updating them if they do. I determine if the record exists by a seek command, which works fine. But if my process has previously added a record, it appears that the seek command fails to find the next item even if it does exist. What am I doing wriong here? - Code is as follows. Set RsMasterFile = dbsCompany.OpenRecordset(strMasterFile) RsMasterFile.Index = "ACCOUNTIDX" 'Loop with each strAccountNo - Code not shown for brevity …

Member Avatar
Member Avatar
+0 forum 3

I want to open a text file at a specific index point. is there an easy was to do it other then building it in a textbox? in notepad and notepad++ they go by line in text and not text index point.

Member Avatar
Member Avatar
+0 forum 2

im a newbie to python, still learning as of today. as a part of my 'self-training' i listed some topics to practice every week but i was not able to run it successfully and im stuck. what i wanted with my activity is for it to read a .txt file which contains tabular data, place each line of the file in an array and return a line i wanted to call. hope you could help me with this. thank you :)

Member Avatar
Member Avatar
+0 forum 5

The End.