Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Read/Write windows 8.1

Author
Message
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 22nd Mar 2014 21:37 Edited at: 22nd Mar 2014 21:49
Hi, I have some code to read a single line from a file:



It is giving me garbage on my windows 8.1 machine while it seems to work fine on my windows 8.0 ultrabook, both using agk 108.21.

If anyone has windows 8.1 with a tier 2 project could you confirm that the command does not work? Or maybe it does, it could be something I'm doing wrong, thanks.


EDIT:
I don't think it's agk, the following code also returns garbage:

Perhaps I need a break, I must be doing something wrong earlier in my code or something.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Mar 2014 09:55
did you create the file with
WriteString
WriteInteger
or manual in notepad?
maybe delete file and make new one and be sure u use the correct.
i saw u use data.dat and data.txt
Look out for a file in media (a template) and the save from agk is in user/documents/agk/media
because sandbox.
if u load in agk it look in documents first,if there is not the
filename the app/media folder are used.
if u save in agk it use the user documents folder only.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 23rd Mar 2014 15:37
Thanks Markus.

I managed to get the second method working by writing the data to file instead of editing it in manually. Perhaps notepad is now saving formatting data also or something? Although I'm pretty sure it never used to.

I will try the agk functions again later and see if they work too.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Mar 2014 15:42
if u use notepad u can use ReadLine, also u can write from agk with WriteLine.
line because contain linebreak.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670

Login to post a reply

Server time is: 2024-11-25 03:58:40
Your offset time is: 2024-11-25 03:58:40